
var Laya = window.Laya = require('./laya.js');


var MD_WXGameOpenData;

!function (t) {
    function e(t) {
        o.postMessage(t);
    }
    function i(t, i) {
        p.visible = !0;
        var n = {
            mission: s.RENDERList,
            renderType: d,
            left: 0,
            top: 0,
            width: 0,
            height: 0,
            shareTicket: t,
            score: i
        };
        switch (d) {
            case r.FRIEND:
                n.width = l.width, n.height = l.height, n.left = l.x, n.top = l.y;
                break;

            case r.GROUP:
                n.width = u.width, n.height = u.height, n.left = u.x, n.top = u.y;
                break;

            case r.END:
                n.width = c.width, n.height = c.height, n.left = c.x, n.top = c.y;
                break;

            case r.REVIVE:
                n.width = _.width, n.height = _.height, n.left = _.x, n.top = _.y;
        }
        m.bitmap.source && m.bitmap.reloadCanvasData(), f = setInterval(function () {
            m.bitmap.reloadCanvasData();
        }, 500), e(n);
    }
    function n() {
        f && (clearInterval(f), f = null, e({
            mission: s.CLOSEDRANK,
            renderType: d
        }), p.visible = !1, d = r.NONE);
    }
    var r;
    !function (t) {
        t[t.NONE = -1] = "NONE", t[t.FRIEND = 0] = "FRIEND", t[t.GROUP = 1] = "GROUP", t[t.END = 2] = "END",
            t[t.REVIVE = 3] = "REVIVE";
    }(r || (r = {}));
    var a;
    !function (t) {
        t[t.PREVIOUS = 0] = "PREVIOUS", t[t.NEXT = 1] = "NEXT";
    }(a || (a = {}));
    var s;
    !function (t) {
        t[t.RENDERList = 0] = "RENDERList", t[t.SWITCHPAGE = 1] = "SWITCHPAGE", t[t.CLOSEDRANK = 2] = "CLOSEDRANK",
            t[t.CALCBESTSCORE = 3] = "CALCBESTSCORE", t[t.GETOPENID = 4] = "GETOPENID", t[t.GETSCOREFONT = 5] = "GETSCOREFONT";
    }(s || (s = {}));
    var o, h, l, u, c, _, d, f, p, m;
    t.init = function (t) {
        o = wx.getOpenDataContext(), (h = o.canvas).width = 1080, h.height = 1920;
        var i = Laya.Browser.width / 1080;
        (p = new Laya.Sprite()).zOrder = 99, p.scale(i, i), p.visible = !1, Laya.stage.addChild(p),
            m = new Laya.Texture(h), p.graphics.drawTexture(m, 0, 0, h.width, h.height), l = t.friendRankSprite,
            u = t.groupRankSprite, c = t.endRankSprite, _ = t.reviveRankSprite, f = null, d = r.NONE,
            e({
                mission: s.GETOPENID,
                openId: t.openid
            }), e({
                mission: s.GETSCOREFONT,
                font: t.scoreFont
            });
    }, t.showFriendRankList = function () {
        n(), d = r.FRIEND, i();
    }, t.showGroupRankList = function (t) {
        n(), d = r.GROUP, i(t);
    }, t.showEndRankList = function () {
        n(), d = r.END, i();
    }, t.showRevivePage = function (t) {
        n(), d = r.REVIVE, i(null, t);
    }, t.nextPage = function () {
        e({
            mission: s.SWITCHPAGE,
            renderType: d,
            switchType: a.NEXT
        });
    }, t.previouPage = function () {
        e({
            mission: s.SWITCHPAGE,
            renderType: d,
            switchType: a.PREVIOUS
        });
    }, t.closeRankList = n, t.calcBestScore = function (t) {
        e({
            mission: s.CALCBESTSCORE,
            score: t
        });
    };
}(MD_WXGameOpenData || (MD_WXGameOpenData = {}));

var MD_WXGame;

!function (t) {
    function e(t) {
        i = t;
    }
    var i, n;
    t.init = function (t) {
        wx.createGameClubButton && (n = wx.createGameClubButton({
            icon: "dark",
            style: {
                left: Laya.Browser.clientWidth - 45,
                top: 100,
                width: 35,
                height: 35
            }
        })), e(t.shareInfo), wx.showShareMenu({
            withShareTicket: !0
        }), wx.updateShareMenu({
            withShareTicket: !0
        }), wx.onShareAppMessage(function (t) {
            return MD_RecordSystem.saveClickRecord("ss", MD_RecordSystem.SharePos.SelfSend),
            {
                title: "这个游戏有毒，跳到根本停不下来！",
                imageUrl: "res/sharingImages/sharing1.jpg",
                query: "openid=" + MD_UserData.getUserData().openid + "&place_no=" + MD_RecordSystem.SharePos.SelfSend
            };
        }), wx.onNetworkStatusChange(function (t) {
            t.isConnected || wx.showToast({
                title: "当前无网络"
            });
        });
    }, t.shareAppMessage = function (t) {
        wx.shareAppMessage(t || i);
    }, t.showClubButton = function () {
        n && n.show();
    }, t.hideClubButton = function () {
        n && n.hide();
    }, t.setShareInfo = e, t.bindOnShow = function (t, e) {
        wx.onShow(e.bind(t));
    }, t.removeOnShow = function (t) {
        wx.offShow(t);
    }, t.bindOnHide = function (t, e) {
        wx.onHide(e.bind(t));
    }, t.removeOnHide = function (t) {
        wx.offHide(t);
    };
}(MD_WXGame || (MD_WXGame = {}));

var MD_TimerAwardSystem;

!function (t) {
    function e() {
        wx.request({
            url: s + "/" + o + "/" + h,
            method: "GET",
            data: {
                wxapp_token: MD_UserData.getUserData().wxapp_token
            },
            success: function (t) {
                if (200 === t.statusCode) {
                    var i = t.data.data;
                    1 === i.ret && (MD_UserData.getUserData().goldCoin = i.goldCoin, function (t) {
                        r.skin = "game/g_award.png", u = Date.now(), c = t.timeRemaining, MD_GetPropSystem.showCoinProp(t.gainGoldCoin, !0),
                            l && l();
                    }(i)), 2 === i.ret && (u = Date.now(), c = i.timeRemaining, r.skin = "game/g_award.png",
                        wx.showToast({
                            title: "还不能开启宝箱",
                            duration: 1e3
                        }));
                } else e();
            },
            fail: function (t) {
                wx.showToast({
                    title: "领取失败,请重新尝试",
                    duration: 1e3
                });
            }
        });
    }
    function i() {
        var t = (Date.now() - u) / 1e3, e = c - t;
        if (e <= 0) return a.text = "领取", void (r.skin = "game/g_awardy.png");
        var i = Math.floor(e / 3600), n = Math.floor(Math.floor(e / 60) % 60), s = Math.floor(e % 60), o = i < 10 ? "0" + i.toString() : i.toString(), h = n < 10 ? "0" + n.toString() : n.toString(), l = s < 10 ? "0" + s.toString() : s.toString();
        a.text = o + ":" + h + ":" + l;
    }
    function n() {
        i(), Laya.timer.frameLoop(30, t, i);
    }
    var r, a, s = "", o = "", h = "doOnLineBox", l = null, u = 0, c = 0;
    t.init = function (i, h) {
        s = i.root, o = i.gameName, r = i.img, a = i.txt, l = h, u = Date.now(), c = i.remainTime,
            r.on("click", t, e), n();
    }, t.show = n, t.hide = function () {
        Laya.timer.clear(t, i);
    };
}(MD_TimerAwardSystem || (MD_TimerAwardSystem = {}));

var MD_ShareSystem;

!function (t) {
    function e() {
        n && (i++, function () {
            if (i < 5) 1 === i || 3 === i ? r && r() : 2 === i ? wx.showToast({
                title: "分享到群",
                duration: 2e3
            }) : wx.showToast({
                title: "分享到不同群",
                duration: 2e3
            }); else {
                var t = i - 4;
                if (t % 10 == 0 && (a = Math.floor(10 * Math.random())), a === t % 10) wx.showToast({
                    title: "分享到不同群",
                    duration: 2e3
                }); else {
                    Date.now() - s < 3e3 ? wx.showToast({
                        title: "分享到不同群",
                        duration: 2e3
                    }) : r && r();
                }
            }
        }(), n = !1);
    }
    var i = 0, n = !1, r = null, a = Math.floor(10 * Math.random()), s = 0;
    t.shareAppMessage = function (t) {
        n = !0, s = Date.now(), r = t;
    }, t.init = function () {
        wx.onShow(e);
    };
}(MD_ShareSystem || (MD_ShareSystem = {}));

var MD_ReviveSystem;

!function (t) {
    function e() {
        n(), _();
    }
    function i() {
        MD_UserData.getUserData().goldCoin < c[u] ? wx.showToast({
            title: "金币不足",
            duraton: 1e3
        }) : wx.request({
            url: r + "/" + a + "/" + l,
            method: "GET",
            data: {
                wxapp_token: MD_UserData.getUserData().wxapp_token,
                custome_gold: c[u]
            },
            success: function (t) {
                if (200 === t.statusCode) {
                    var e = t.data.data;
                    1 === e.ret ? (MD_UserData.getUserData().goldCoin = e.goldCoin, n(), h()) : wx.showToast({
                        title: "请求失败，再次尝试",
                        duraton: 1e3
                    });
                } else i();
            },
            fail: function (t) {
                wx.showToast({
                    title: "请求失败，再次尝试",
                    duration: 1e3
                });
            }
        });
    }
    function n() {
        s.visible = !1;
    }
    var r, a, s, o, h, l = "doRevive", u = 0, c = [200, 400, 800], _ = null, d = null;
    t.hide = n, t.init = function (t, l, u, c, f) {
        var p = t.scoreFont, m = Laya.Browser.width / 1080;
        (s = new ui.RevivePageUI()).scale(m, m), s.visible = !1, Laya.stage.addChild(s),
            s.score.font = p, o = f, _ = u, h = c, d = l, s.costBtn.on("click", this, function () {
                i();
            }), s.skip.on("click", this, function () {
                s.visible = !1, o && o();
            }), s.watchVideo.on("click", this, function () {
                GameManager.isShowBannar && (MD_AdsSystem.setRewardFuncs(e), GameSetting.rewardAdState !== RewardAdState.REVIVE && (MD_AdsSystem.createRewardId(GameSetting.reviveRewardAd),
                    GameSetting.rewardAdState = RewardAdState.REVIVE), MD_AdsSystem.showRewardId());
            }), s.shareBtn.on("click", this, function () {
                !function () {
                    MD_RecordSystem.saveClickRecord("sr", MD_RecordSystem.SharePos.ShareRevive);
                    var t = Math.floor(4 * Math.random()) + 1;
                    wx.shareAppMessage({
                        title: "快来帮我点一下，我不想灰飞烟灭啊！",
                        imageUrl: "res/sharingImages/sharing" + t + ".jpg",
                        query: "openid=" + MD_UserData.getUserData().openid + "&place_no=" + MD_RecordSystem.SharePos.ShareRevive,
                        success: function (t) { },
                        fail: function (t) { }
                    }), MD_ShareSystem.shareAppMessage(function () {
                        n(), d();
                    });
                }();
            }), r = t.root, a = t.gameName;
    }, t.showEndRevivePage = function (t, e, i, n) {
        s.visible = !0, s.score.text = t.toString(), e && n && (s.shareBtn.x = 150, s.watchVideo.x = 530),
            e && i && !n && (s.shareBtn.x = 150, s.costBtn.x = 580), n && !e && i && (s.costBtn.x = 150,
                s.watchVideo.x = 530), !e || i || n || (s.shareBtn.x = 380), !i || e || n || (s.costBtn.x = 380),
            !n || e || i || (s.watchVideo.x = 350), s.shareBtn.visible = e, s.watchVideo.visible = !!GameManager.isShowBannar && n,
            s.costBtn.visible = i && (!e || !n);
    }, t.getRankSprite = function () {
        return s.rankSprite;
    };
}(MD_ReviveSystem || (MD_ReviveSystem = {}));

var MD_RecordSystem;

!function (t) {
    function e(t, i) {
        var s = MD_UserData.getUserData();
        wx.request({
            url: n + "/" + r + "/" + a,
            method: "GET",
            data: {
                wxapp_token: s.wxapp_token,
                btn_name: t,
                place_no: i
            },
            success: function (n) {
                200 === n.statusCode || e(t, i);
            }
        });
    }
    function i(t, i) {
        var a = MD_UserData.getUserData();
        wx.request({
            url: n + "/" + r + "/" + s,
            method: "GET",
            data: {
                wxapp_token: a.wxapp_token,
                m_openid: t,
                f_openid: a.openid,
                place_no: i
            },
            success: function (n) {
                200 === n.statusCode || e(t, i);
            }
        });
    }
    !function (t) {
        t[t.GamePage = 0] = "GamePage", t[t.GroupRank = 1] = "GroupRank", t[t.Daily = 2] = "Daily",
            t[t.ShareRevive = 3] = "ShareRevive", t[t.InviteChanllenge = 4] = "InviteChanllenge",
            t[t.SelfSend = 5] = "SelfSend", t[t.GetProp = 6] = "GetProp";
    }(t.SharePos || (t.SharePos = {}));
    var n = "", r = "", a = "saveClickRecord", s = "saveShareRecord";
    t.init = function (t) {
        r = t.gameName, n = t.root, wx.onShow(function (t) {
            t.query && void 0 !== t.query.place_no && i(t.query.openid, parseInt(t.query.place_no));
        });
        var e = wx.getLaunchOptionsSync();
        e.query && void 0 !== e.query.place_no && i(e.query.openid, parseInt(e.query.place_no));
    }, t.saveClickRecord = e;
}(MD_RecordSystem || (MD_RecordSystem = {}));

var MD_RecommandSystem;

!function (t) {
    (MD_RecommandSystem || (MD_RecommandSystem = {})).show = function () {
        wx.previewImage({
            current: MD_UserData.getUserData().wxCodeUrl,
            urls: [MD_UserData.getUserData().wxCodeUrl]
        });
    };
}();

var MD_CharactersSystem;

!function (t) {
    function e(t) {
        f = new ui.CharactersUI(), Laya.stage.addChild(f), f.visible = !1, f.coinsText.font = t,
            f.buyCoinText.font = t, function () {
                var t = Laya.Browser.width / 1080;
                f.scale(t, t);
            }(), function () {
                f.useBtn.on("click", this, n), f.unlockBtn.on("click", this, n), f.backBtn.on("click", this, i);
            }(), function () {
                p = f.characterImgs;
                for (var t = 0; t < T; t++) {
                    var e = p.getChildAt(t), i = t === M ? R : b;
                    e.scale(i, i), e.anchorX = .5, e.anchorY = 0, e.x = 540 + t * w, C.push(e);
                }
            }(), s();
    }
    function i() {
        D && D();
    }
    function n() {
        var t = S[M];
        console.log("判断是要解锁", t, M), t.unlocked ? a(M) : r(M, t.cost);
    }
    function r(t, e) {
        MD_UserData.getUserData().goldCoin < e ? wx.showToast({
            title: "解锁所需金币不足",
            duration: 500
        }) : wx.request({
            url: m + "/" + g + "/" + v,
            data: {
                wxapp_token: MD_UserData.getUserData().wxapp_token,
                roleId: t
            },
            success: function (i) {
                200 === i.statusCode ? 1 === i.data.data.ret ? (wx.showToast({
                    title: "解锁角色成功",
                    duration: 500
                }), d(t), MD_UserData.getUserData().goldCoin = i.data.data.goldCoin, s()) : wx.showToast({
                    title: "解锁角色失败，重新尝试",
                    duration: 500
                }) : r(t, e);
            },
            fail: function () {
                wx.showToast({
                    title: "解锁角色失败，重新尝试",
                    duration: 500
                });
            }
        });
    }
    function a(t) {
        y !== t && (y = t, wx.request({
            url: m + "/" + g + "/" + x,
            data: {
                wxapp_token: MD_UserData.getUserData().wxapp_token,
                roleId: t
            },
            success: function (e) {
                200 === e.statusCode ? console.log("选择成功") : a(t);
            },
            fail: function () { }
        })), MD_UserData.getUserData().chooseRole = t, E && E(t), console.log(y);
    }
    function s() {
        for (var t = "", e = MD_UserData.getUserData().goldCoin, i = 4; i > 0 && !(e / Math.pow(10, i) >= 1); i--) t += "0";
        t += e, f.coinsText.text = t;
    }
    function o(t) {
        A = -t * w;
    }
    function h() {
        var t = Laya.timer.delta;
        t > .1 && (t = .1), I = Laya.MathUtil.lerp(I, A, t / .2), p.x = I;
        var e = Math.round(-I / w);
        e < 0 && (e = 0), e > T - 1 && (e = T - 1), M !== e && _(M = e);
        for (var i = 0; i < T; i++) {
            var n = C[i].scaleX, r = e === i ? R : b;
            n = Laya.MathUtil.lerp(n, r, t / .2), C[i].scale(n, n);
        }
    }
    function l(t) {
        P = t.touches ? t.touches[0].stageX : t.stageX;
    }
    function u(t) {
        (function (t) {
            A += t / Laya.Browser.clientWidth * 1080;
        })((L = t.touches ? t.touches[0].stageX : t.stageX) - P), P = L;
    }
    function c(t) {
        var e = Math.round(-A / w);
        e < 0 && (e = 0), e > T - 1 && (e = T - 1), o(e);
    }
    function _(t) {
        var e = S[t];
        console.log("展示角色：", e, t), e.unlocked ? (f.useBtn.visible = !0, f.unlockBtn.visible = !1) : (f.useBtn.visible = !1,
            f.unlockBtn.visible = !0, f.buyCoinText.text = e.cost.toString()), f.characterName.text = e.name;
        var i = f.characterName.width + 93;
        f.nameImg.width = i, f.nameImg.left = (1080 - i) / 2, f.characterDescrip.text = e.description;
        var n = f.characterDescrip.width + 124;
        f.descripImg.width = n, f.descripImg.left = (1080 - n) / 2;
    }
    function d(t) {
        console.log(" 设置已经解锁", S, t), S[t].unlocked = 1;
        var e = C[t];
        e.gray = !1, e.alpha = 1, e.getChildAt(0).visible = !1, M === t && _(M), MD_UserData.getUserData().buyRole.indexOf(t) < 0 && MD_UserData.getUserData().buyRole.push(t);
    }
    var f, p, m = "", g = "", v = "doBuyRole", x = "doChooseRole", y = 0, S = [], T = 0, E = null, D = null, M = 0, w = 300, C = [], I = 0, A = 0, b = .8, R = 1, P = 0, L = 0;
    t.setUnlockedCharacter = d, t.init = function (t, i, n) {
        console.log(t.characterInfos), y = t.useCharacterIndex, m = t.root, g = t.gameName,
            w = t.cellWidth, function (t) {
                for (var e = 0; e < t.length; e++) S.push(t[e]);
                T = S.length;
            }(t.characterInfos), e(t.scoreFont);
        for (var a = 0; a < t.unlockCharacters.length; a++) d(t.unlockCharacters[a]);
        t.unlockCharacters.indexOf(1) < 0 && r(1, 0), i && (E = i), n && (D = n);
    }, t.unlockAwardCharacters = function (t) {
        for (var e = 0; e < t.length; e++) console.log("unlockAwardCharacters:", t), !S[t[e]].unlocked && d(t[e]);
    }, t.show = function () {
        s(), f.visible = !0, _(y), function () {
            Laya.timer.frameLoop(1, this, h), Laya.stage.on(Laya.Event.MOUSE_DOWN, this, l),
                Laya.stage.on(Laya.Event.MOUSE_MOVE, this, u), Laya.stage.on(Laya.Event.MOUSE_UP, this, c);
        }(), o(y);
    }, t.hide = function () {
        !function () {
            Laya.timer.clear(this, h), Laya.stage.off(Laya.Event.MOUSE_DOWN, this, l), Laya.stage.off(Laya.Event.MOUSE_MOVE, this, u),
                Laya.stage.off(Laya.Event.MOUSE_UP, this, c);
        }(), f.visible = !1;
    };
}(MD_CharactersSystem || (MD_CharactersSystem = {}));

var MD_PlayerBoxesSystem;

!function (t) {
    function e(t) {
        var i = MD_UserData.getUserData();
        wx.request({
            url: h + "/" + l + "/" + u,
            method: "GET",
            data: {
                wxapp_token: i.wxapp_token
            },
            success: function (i) {
                200 === i.statusCode ? (function (t) {
                    for (var e = MD_UserData.getUserData(), i = 0; i < t.length; i++) t[i].is_get && e.buyRole.indexOf(t[i].role_id) < 0 && (e.buyRole.push(t[i].role_id),
                        MD_CharactersSystem.setUnlockedCharacter(t[i].role_id));
                }(c = i.data.data.roleStatus), t && t(c)) : e(t);
            }
        });
    }
    function i(e) {
        _ = Date.now();
        MD_UserData.getUserData();
        for (var i = 0; i < o.length; i++) i < e.length ? (o[i].skin = "game/playerm" + e[i].role_id + ".png",
            o[i].getChildAt(1).skin = "playerBoxes/" + (e[i].is_get ? "p_geted" : "p_invite") + ".png",
            n(e[i].diff_time, o[i].getChildAt(2)), o[i].visible = !0) : o[i].visible = !1;
        s.visible = !0, Laya.timer.frameLoop(30, t, r);
    }
    function n(t, e) {
        var i = t - (Date.now() - _) / 1e3;
        if (i <= 0) e.parent.visible = !1; else {
            var n = Math.floor(i / 3600), r = Math.floor(Math.floor(i / 60) % 60), a = Math.floor(i % 60), s = n < 10 ? "0" + n.toString() : n.toString(), o = r < 10 ? "0" + r.toString() : r.toString(), h = a < 10 ? "0" + a.toString() : a.toString();
            e.text = "剩余时间: " + s + ":" + o + ":" + h;
        }
    }
    function r() {
        for (var t = 0; t < c.length; t++) n(c[t].diff_time, o[t].getChildAt(2));
    }
    function a() {
        s.visible = !1, Laya.timer.clear(t, r);
    }
    var s, o = [], h = "", l = "", u = "getRoleStatusByShare", c = [];
    t.init = function (e) {
        h = e.root, l = e.gameName, function () {
            var e = Laya.Browser.width / 1080;
            (s = new ui.PlayerBoxesUI()).scale(e, e), Laya.stage.addChild(s), s.visible = !1,
                s.closeBtn.on("click", t, a), s.zOrder = 100;
            for (var i = s.boxesPanel, n = 70, r = function (e) {
                var r = i.getChildAt(e);
                r.x = e % 2 == 0 ? 87 : 465, r.y = n, e % 2 != 0 && (n += 504);
                var a = r.getChildAt(1);
                !function (e) {
                    a.on("click", t, function () {
                        if (!c[e].is_get) {
                            var t = c[e].role_id, i = MD_UserData.getUserData(), n = c[e].share_uuid;
                            MD_RecordSystem.saveClickRecord("gpp", MD_RecordSystem.SharePos.GetProp), wx.shareAppMessage({
                                title: "帮我一下，提高人品，汇聚欧气，终成锦鲤",
                                imageUrl: "res/sharingImages/sharing" + (Math.floor(4 * Math.random()) + 1) + ".jpg",
                                query: "openid=" + i.openid + "&uid=" + i.uid + "&roleId=" + t + "&uuid=" + n + "&place_no=" + MD_RecordSystem.SharePos.GetProp,
                                success: function (t) { },
                                fail: function (t) { }
                            });
                        }
                    });
                }(e), o.push(r);
            }, h = 0; h < i.numChildren; h++) r(h);
        }();
    }, t.getRoleStatusByShare = e;
    var _ = 0;
    t.getStats = function () {
        return c;
    }, t.show = function () {
        e(i), i(c);
    }, t.hide = a;
}(MD_PlayerBoxesSystem || (MD_PlayerBoxesSystem = {}));

var MD_MissionSystem;

!function (t) {
    function e(t) {
        var i = MD_UserData.getUserData().everyDayTask[t];
        wx.request({
            url: u + "/" + c + "/" + _,
            method: "GET",
            data: {
                wxapp_token: MD_UserData.getUserData().wxapp_token,
                taskId: i.taskId
            },
            success: function (i) {
                if (200 === i.statusCode) {
                    var n = i.data.data;
                    1 === n.ret ? (MD_CharactersSystem.unlockAwardCharacters(n.buyRole), MD_UserData.getUserData().goldCoin = n.goldCoin,
                        MD_UserData.getUserData().everyDayTask[t].taskStatus = 2, function (t, e) {
                            h.missionTools.getChildAt(t).getChildByName("getAward").skin = "mission/m_geted.png",
                                e.gainRole;
                            "" !== e.gainGoldCoin && MD_GetPropSystem.showCoinProp(e.gainGoldCoin, !1);
                        }(t, n)) : wx.showToast({
                            title: "领取奖励失败",
                            duration: 500
                        });
                } else e(t);
            },
            fail: function (t) {
                wx.showToast({
                    title: "领取奖励失败",
                    duration: 500
                });
            }
        });
    }
    function i(t) {
        MD_RecordSystem.saveClickRecord("dl", MD_RecordSystem.SharePos.Daily), wx.shareAppMessage({
            title: "帮我一下，提高人品，汇聚欧气，终成锦鲤",
            imageUrl: "res/sharingImages/sharing" + Math.floor(4 * Math.random() + 1) + ".jpg",
            query: "openid=" + MD_UserData.getUserData().openid + "&place_no=" + MD_RecordSystem.SharePos.Daily,
            success: function (t) { }
        }), wx.request({
            url: u + "/" + c + "/" + f,
            method: "GET",
            data: {
                wxapp_token: MD_UserData.getUserData().wxapp_token
            },
            success: function (e) {
                200 === e.statusCode || i(t);
            },
            fail: function (t) { }
        });
    }
    function n(t) {
        switch (MD_UserData.getUserData().everyDayTask[t].taskStatus) {
            case 0:
                i(t);
                break;

            case 1:
                e(t);
                break;

            case 2:
                console.log("已经领取过奖励");
        }
    }
    function r() {
        o(), l && l();
    }
    function a(t) {
        wx.request({
            url: u + "/" + c + "/" + d,
            method: "GET",
            data: {
                wxapp_token: MD_UserData.getUserData().wxapp_token,
                openid: t
            },
            success: function (e) {
                200 === e.statusCode || a(t);
            },
            fail: function (t) { }
        });
    }
    function s() {
        for (var t = MD_UserData.getUserData().everyDayTask, e = 0; e < t.length; e++) {
            var i = t[e], n = h.missionTools.getChildAt(e);
            n.getChildByName("award").skin = "mission/" + (2 === i.taskType ? "m_coins.png" : "m_store.png"),
                n.getChildByName("awardTxt").text = 2 === i.taskType ? i.taskReward.toString() : "宝箱",
                n.getChildByName("getAward").skin = "mission/" + (0 === i.taskStatus ? "m_invite.png" : 1 === i.taskStatus ? "m_lq.png" : "m_geted.png");
        }
    }
    function o() {
        h.visible = !1;
    }
    var h, l = null, u = "", c = "", _ = "doGetTask", d = "doSetTaskByShare", f = "doGetTaskByShare";
    t.init = function (e, s) {
        u = e.root, c = e.gameName, l = s, function () {
            var e = Laya.Browser.width / 1080;
            h = new ui.MissionPageUI(), Laya.stage.addChild(h), h.scale(e, e), h.visible = !1;
            for (var a = MD_UserData.getUserData().everyDayTask, s = 0; s < a.length; s++) !function (e) {
                h.missionTools.getChildAt(e).getChildByName("getAward").on("click", t, function () {
                    n(e);
                });
            }(s);
            h.backBtn.on("click", t, r), h.inviteBtn.on("click", t, i);
        }(), function () {
            wx.onShow(function (t) {
                t.query && parseInt(t.query.place_no) === MD_RecordSystem.SharePos.Daily && t.query.openid && a(t.query.openid);
            });
            var t = wx.getLaunchOptionsSync();
            t.query && parseInt(t.query.place_no) === MD_RecordSystem.SharePos.Daily && t.query.openid && a(t.query.openid);
        }();
    }, t.show = function () {
        h.visible = !0, MD_GameLogin.refreshInfo(s), s();
    }, t.hide = o;
}(MD_MissionSystem || (MD_MissionSystem = {}));

var MD_Math;

(MD_Math || (MD_Math = {})).generateUUID = function () {
    for (var t = [], e = 0; e < 256; e++) t[e] = (e < 16 ? "0" : "") + e.toString(16);
    return function () {
        var e = 4294967295 * Math.random() | 0, i = 4294967295 * Math.random() | 0, n = 4294967295 * Math.random() | 0, r = 4294967295 * Math.random() | 0;
        return (t[255 & e] + t[e >> 8 & 255] + t[e >> 16 & 255] + t[e >> 24 & 255] + "-" + t[255 & i] + t[i >> 8 & 255] + "-" + t[i >> 16 & 15 | 64] + t[i >> 24 & 255] + "-" + t[63 & n | 128] + t[n >> 8 & 255] + "-" + t[n >> 16 & 255] + t[n >> 24 & 255] + t[255 & r] + t[r >> 8 & 255] + t[r >> 16 & 255] + t[r >> 24 & 255]).toUpperCase();
    };
}();

var MD_GlobalRank;

!function (t) {
    function e() {
        wx.showLoading(null), wx.request({
            url: s + "/" + o + "/" + u,
            data: {
                wxapp_token: MD_UserData.getUserData().wxapp_token
            },
            success: function (t) {
                wx.hideLoading(null), 200 === t.statusCode ? 0 == t.data.errorcode && (l = t.data.data,
                    f = Math.ceil(l.length / d), r()) : e();
            },
            fail: function (t) {
                wx.hideLoading(null);
            }
        });
    }
    function i() {
        var t = h.myInfo;
        t.visible = !0;
        var e = MD_UserData.getUserData();
        n(t, e, e.rank);
    }
    function n(t, e, i) {
        var n = t.getChildAt(0);
        n.text = i.toString(), n.fontSize = i > 3 ? 50 : 60, i > 3 ? (n.fontSize = 50, n.color = "#ffffff") : (n.fontSize = 60,
            1 === i && (n.color = "#f6ff03"), 2 === i && (n.color = "#ff9c00"), 3 === i && (n.color = "#ff9c00"));
        var r = t.getChildAt(3);
        r.texture && r.texture.destroy(), e.avatarUrl && "" !== e.avatarUrl ? r.loadImage(e.avatarUrl, 0, 0, r.width, r.height) : r.loadImage(c, 0, 0, r.width, r.height),
            t.getChildAt(1).text = "" === e.account ? "玩家" : e.account, t.getChildAt(2).text = e.betterScore.toString();
    }
    function r() {
        if (l) {
            var t = l.length;
            if (!(t <= 0)) {
                var e = d * _, i = e + d - 1;
                i >= t && (i = t - 1);
                for (var r = 0; r < d; r++) {
                    var a = h.allRank.getChildAt(r);
                    if (e + r <= i) {
                        a.visible = !0;
                        n(a, l[e + r], e + r + 1);
                    } else a.visible = !1;
                }
            }
        }
    }
    function a(t, e) {
        t.visible = !1, t.getChildAt(0).font = e, t.getChildAt(2).font = e;
    }
    var s, o, h, l, u = "doRankList", c = "rank/defaultimg.png", _ = 0, d = 8, f = 0;
    t.nextPage = function () {
        _ >= f - 1 || (_++, r());
    }, t.previousPage = function () {
        _ <= 0 || (_--, r());
    }, t.init = function (t) {
        h = t.rankPage, s = t.root, o = t.gameName, a(h.myInfo, t.scoreFont);
        for (var e = 0; e < d; e++) a(h.allRank.getChildAt(e), t.scoreFont);
    }, t.show = function () {
        _ = 0, MD_GameLogin.refreshInfo(i), e(), console.log("show:", h), h.globalRank.visible = !0,
            h.globalDir.visible = !0, h.globalBg.skin = "rank/rank_choose.png", h.friendBg.skin = "rank/rank_nochoose.png",
            h.friendDir.visible = !1;
    }, t.hide = function () {
        console.log("hide:", h), h.globalRank.visible = !1, h.globalDir.visible = !1, h.globalBg.skin = "rank/rank_nochoose.png",
            h.friendBg.skin = "rank/rank_choose.png", h.friendDir.visible = !0;
    };
}(MD_GlobalRank || (MD_GlobalRank = {}));

var MD_GetPropSystem;

!function (t) {
    function e() {
        var t = MD_UserData.getUserData();
        wx.request({
            url: h + "/" + l + "/" + f,
            method: "GET",
            data: {
                wxapp_token: t.wxapp_token,
                roleId: m
            },
            success: function (i) {
                200 === i.statusCode ? 1 === i.data.data.ret && (s(), t.buyRole.indexOf(m) < 0 && t.buyRole.push(m),
                    MD_CharactersSystem.setUnlockedCharacter(m), wx.showToast({
                        title: "成功领取角色",
                        duration: 1e3
                    })) : e();
            }
        });
    }
    function i(t, e, n) {
        var r = MD_UserData.getUserData();
        e !== r.uid && wx.request({
            url: h + "/" + l + "/" + _,
            method: "GET",
            data: {
                wxapp_token: r.wxapp_token,
                m_uid: e,
                f_openid: r.openid,
                item_id: n,
                share_uuid: t
            },
            success: function (r) {
                if (200 === r.statusCode) {
                    var a = "";
                    switch (r.data.data.ret) {
                        case 0:
                        case 3:
                            a = "对方已领取";
                            break;

                        case 1:
                            a = "助力成功!";
                            break;

                        case 2:
                            a = "助力失败!";
                            break;

                        case 4:
                            a = "此链接失效";
                            break;

                        case 5:
                            a = "对方超过上限";
                            break;

                        case 6:
                            a = "今日无法再次助力";
                    }
                    wx.showToast({
                        title: a,
                        duration: 2e3
                    });
                } else i(t, e, n);
            }
        });
    }
    function n() {
        x = !1;
        for (var t = MD_UserData.getUserData(), e = MD_PlayerBoxesSystem.getStats(), i = [], n = 0; n < e.length; n++) i.push(e[n].role_id);
        for (var r = 17 - t.buyRole.length, a = Math.floor(Math.random() * r) + 1, s = 0, n = 1; n < 18; n++) if (t.buyRole.indexOf(n) < 0 && i.indexOf(n) < 0 && s++,
            s === a) {
            m = n;
            break;
        }
        g = MD_Math.generateUUID();
        var h = [1, 1, 1, 1, 2, 2, 2, 4, 4, 2, 2, 3, 3, 3, 3, 4, 4];
        o.GetPlayerImg.skin = "game/playerm" + m + ".png", o.shareTipsImg1.skin = "mission/m_ll" + h[m - 1] + "_1.png",
            o.shareTipsImg2.skin = "mission/m_ll" + h[m - 1] + "_2.png", o.shareTipsWord.skin = "mission/m_lw" + h[m - 1] + ".png",
            o.shareTips.visible = !0, o.getBox.visible = !1, o.coinTips.visible = !1;
    }
    function r(t, e) {
        x = !0;
        var i = MD_UserData.getUserData();
        wx.request({
            url: h + "/" + l + "/" + d,
            method: "GET",
            data: {
                wxapp_token: i.wxapp_token,
                m_uid: i.uid,
                item_id: e,
                share_uuid: t
            },
            success: function (i) {
                200 === i.statusCode ? 1 === i.data.data.ret && (MD_PlayerBoxesSystem.getRoleStatusByShare(null),
                    s(), wx.showToast({
                        title: "发送出邀请",
                        duration: 1500
                    }), u && u(e)) : r(t, e);
            }
        });
    }
    function a() {
        var t = MD_UserData.getUserData();
        wx.request({
            url: h + "/" + l + "/" + p,
            method: "GET",
            data: {
                wxapp_token: t.wxapp_token
            },
            success: function (t) {
                if (200 === t.statusCode) {
                    var e = t.data.data;
                    e.totalGetNum > e.haveGettedNum ? (y = !0, MD_PlayerBoxesSystem.getRoleStatusByShare(null),
                        o.shareTips.visible = !1, o.getBox.visible = !0, o.coinTips.visible = !1, o.visible = !0) : y = !1;
                } else a();
            }
        });
    }
    function s() {
        o.visible = !1;
    }
    var o, h = "", l = "", u = null, c = null, _ = "getItemByShare", d = "initShareRecord", f = "doUnlockRole", p = "getRoleTimeTody", m = -1, g = "", v = 0, x = !1, y = !0, S = !0;
    t.init = function (a) {
        h = a.root, l = a.gameName, u = a.shareOKFunc, c = a.getPrizeOkFunc;
        var _ = Laya.Browser.width / 1080;
        (o = new ui.GetPropPageUI()).zOrder = 100, o.scale(_, _), o.visible = !1, Laya.stage.addChild(o),
            o.yesImg.visible = S, o.inviteBtn.visible = S, o.watchVideo.visible = !!GameManager.isShowBannar && !S,
            GameManager.isShowBannar || (o.getThree.visible = !1), o.getThree.on("click", t, function () {
                GameManager.isShowBannar && (GameSetting.rewardAdState !== RewardAdState.GETTHREE && (MD_AdsSystem.createRewardId(GameSetting.getThreeCoinsRewardAd),
                    GameSetting.rewardAdState = RewardAdState.GETTHREE), MD_AdsSystem.showRewardId());
            }), o.sureBtn.on("click", t, s), o.closeTips.on("click", t, s), o.closeBoxBtn.on("click", t, s),
            o.closeShareBtn.on("click", t, s), o.getBox.on("click", t, n), o.openBtn.on("click", t, n),
            o.shareBtn.on("click", t, function () {
                S = !S, o.yesImg.visible = S, o.inviteBtn.visible = S, o.watchVideo.visible = !!GameManager.isShowBannar && !S;
            }), o.watchVideo.on("click", t, function () {
                GameManager.isShowBannar && (MD_AdsSystem.setRewardFuncs(e), GameSetting.rewardAdState !== RewardAdState.GETPROP && (MD_AdsSystem.createRewardId(GameSetting.getPropRewardAd),
                    GameSetting.rewardAdState = RewardAdState.GETPROP), MD_AdsSystem.showRewardId());
            }), o.inviteBtn.on("click", t, function () {
                var t = MD_UserData.getUserData(), e = g;
                MD_RecordSystem.saveClickRecord("gpp", MD_RecordSystem.SharePos.GetProp), wx.shareAppMessage({
                    title: "帮我一下，提高人品，汇聚欧气，终成锦鲤",
                    imageUrl: "res/sharingImages/sharing" + (Math.floor(4 * Math.random()) + 1) + ".jpg",
                    query: "openid=" + t.openid + "&uid=" + t.uid + "&roleId=" + m + "&uuid=" + e + "&place_no=" + MD_RecordSystem.SharePos.GetProp,
                    success: function (t) { },
                    fail: function (t) { }
                }), !x && r(e, m);
            }), wx.onShow(function (t) {
                t.query && parseInt(t.query.place_no) === MD_RecordSystem.SharePos.GetProp && t.query.uuid && t.query.uid && t.query.roleId && i(t.query.uuid, parseInt(t.query.uid), parseInt(t.query.roleId));
            });
        var d = wx.getLaunchOptionsSync();
        d.query && parseInt(d.query.place_no) === MD_RecordSystem.SharePos.GetProp && d.query.uuid && d.query.uid && d.query.roleId && i(d.query.uuid, parseInt(d.query.uid), parseInt(d.query.roleId));
    }, t.sendGetPlayerInvite = r, t.showGetBox = function () {
        var t = MD_UserData.getUserData(), e = MD_PlayerBoxesSystem.getStats();
        !y && t.buyRole.length + e.length >= 17 || a();
    }, t.showCoinProp = function (t, e) {
        v = t, o.getCoin.text = "X" + t, o.shareTips.visible = !1, o.getBox.visible = !1,
            o.coinTips.visible = !0, o.sureBtn.visible = !e, o.getThree.visible = !!GameManager.isShowBannar && e,
            o.visible = !0, GameManager.isShowBannar && MD_AdsSystem.setRewardFuncs(function () {
                MD_GameLogin.uploadGetCoins(2 * v, function () {
                    wx.showToast({
                        title: "额外获得" + 2 * v + "金币",
                        duration: 2e3
                    }), c && c();
                }), s();
            });
    }, t.hide = s;
}(MD_GetPropSystem || (MD_GetPropSystem = {}));

var MD_UserData;

!function (t) {
    var e = {
        showId: 0,
        uid: -1,
        account: "",
        avatarUrl: "",
        openid: "",
        unionid: "",
        wxapp_token: "",
        buyRole: [1],
        goldCoin: 1,
        chooseRole: 1,
        gameNum: 11,
        gameTotalNum: 222,
        betterScore: 111,
        loginContinuNum: 11,
        loginTotalNum: 111,
        rank: 0,
        easterChance: 0,
        wxCodeUrl: "",
        wxIconUrl: "",
        timeRemaining: 1e3,
        everyDayTask: []
    };
    t.getUserData = function () {
        return e;
    }, t.updateAllInfo = function (t) {
        0 === (e = t).buyRole.length && e.buyRole.push(1), e.chooseRole < 0 && (e.chooseRole = 0);
    };
}(MD_UserData || (MD_UserData = {}));

var MD_GameLogin;

!function (t) {
    function e() {
        wx.getSetting({
            success: function (t) {
                t.authSetting["scope.userInfo"] ? (y = !0, n()) : (y = !1, function () {
                    var t = Laya.Browser.width / 1080;
                    t /= GameManager.Instance.pixelRatio, (u = wx.createUserInfoButton({
                        type: "image",
                        image: "",
                        style: {
                            left: 539 * t,
                            top: 1430 * t,
                            width: 480 * t,
                            height: 116 * t,
                            backgroundColor: "#ff0000"
                        }
                    })).hide(), u.onTap(function (t) {
                        "getUserInfo:ok" === t.errMsg ? (u.hide(), n(c)) : wx.showToast({
                            title: "需授权查看",
                            duration: 1e3
                        });
                    });
                }());
            },
            fail: function () {
                e();
            }
        });
    }
    function n(t) {
        wx.getUserInfo({
            success: function (e) {
                y = !0, wx.request({
                    url: _ + "/" + d + "/" + g,
                    method: "GET",
                    data: {
                        wxapp_token: f,
                        encrypted_data: e.encryptedData,
                        iv: e.iv
                    },
                    success: function (e) {
                        200 === e.statusCode ? t && t() : n(t);
                    },
                    fail: function (t) {
                        wx.showToast({
                            title: "上传信息失败",
                            duration: 500
                        });
                    }
                });
            }
        });
    }
    function o(t, e, i) {
        console.log(' ==== begin requrest ===', t, e, i)
        // wx.request({
        //     url: _ + "/" + d + "/" + v,
        //     method: "GET",
        //     data: {
        //         wxapp_token: f,
        //         betterScore: t
        //     },
        //     success: function (n) {
        //         200 === n.statusCode ? 1 === n.data.data.ret && e && e() : o(t, e, i);
        //     },
        //     fail: function () {
        //         i && i();
        //     }
        // });
    }
    function h(t, e, i) {
        wx.request({
            url: _ + "/" + d + "/" + x,
            method: "GET",
            data: {
                wxapp_token: f,
                goldCoin: t
            },
            success: function (n) {
                200 === n.statusCode ? 1 === n.data.data.ret && (MD_UserData.getUserData().goldCoin = n.data.data.goldCoin,
                    e && e()) : h(t, e, i);
            },
            fail: function () {
                i && i();
            }
        });
    }
    var l, u, c, _ = "", d = "", f = "", p = "doGetUserInfo", m = "doRegByCode", g = "doWxAppUserInfo", v = "doBetterScore", x = "doGetGlodCoin", y = !1, S = !1;
    t.showLoginButton = function (t) {
        t && (c = t), u && u.show();
    }, t.hideLoginButton = function () {
        u && u.hide();
    }, t.getWXUserInfo = n, t.init = function (t) {
        console.log('2、预加载完毕后，通过真机拿到用户的信息，写死用户信息')
        // _ = t.root, d = t.gameName, S = !1;
        // 要不要设置都无所谓，都可以游戏，只是游戏结束没办法记录到用户上 
        const info = require('./info.js').default.data.data;
        MD_UserData.updateAllInfo(info);
        GameManager.Instance.gameInit.bind(GameManager.Instance)();

    }, t.uploadBetterScore = o, t.uploadGetCoins = h, t.getAuthor = function () {
        return y;
    };
}(MD_GameLogin || (MD_GameLogin = {}));

var MD_AdsSystem;

!function (t) {
    var e, i;
    t.createBannerId = function (t, i) {
        e && e.destroy(), wx.createBannerAd && (e = wx.createBannerAd({
            adUnitId: t,
            style: {
                left: 0,
                top: 0,
                width: Laya.Browser.clientWidth
            }
        })), e && (e.onLoad(function () {
            var t = e.style.realHeight >= 100 ? 100 : e.style.realHeight, n = t * e.style.realWidth / e.style.realHeight;
            e.style.width = n, e.style.left = (Laya.Browser.clientWidth - n) / 2, e.style.top = Laya.Browser.clientHeight - t,
                i && e.show();
        }), e.onError(function () {
            wx.showToast({
                title: "广告异常",
                duration: 2e3
            });
        }));
    }, t.hideBanner = function () {
        e && e.hide();
    }, t.showBanner = function (t) {
        if (e && e.show(), e) if (t) e.style.top = 0; else {
            var i = e.style.realHeight >= 100 ? 100 : e.style.realHeight;
            e.style.top = Laya.Browser.clientHeight - i;
        }
    }, t.createRewardId = function (t) {
        wx.createRewardedVideoAd && (i = wx.createRewardedVideoAd({
            adUnitId: t
        })), i && (i.onClose(function (t) {
            t && t.isEnded || void 0 === t ? n && n() : r && r();
        }), i.onError(function (t) {
            wx.showToast({
                title: "暂无广告可以看",
                duration: 2e3
            });
        }));
    };
    var n = null, r = null;
    t.setRewardFuncs = function (t, e) {
        n = t, r = e;
    }, t.showRewardId = function () {
        i && i.load().then(function () {
            i.show();
        }).catch(function (t) {
            console.log(t.errMsg);
        });
    };
}(MD_AdsSystem || (MD_AdsSystem = {}));

var SoundName, ResourcesConfig = function () {
    function t() { }
    return t.bgPt = {
        type: "Sprite3D",
        props: {
            name: "bgpt"
        },
        customProps: {
            translate: [0, 0, 0],
            rotation: [0, 0, 0, -1],
            scale: [1, 1, 1]
        },
        child: [{
            type: "ShuriKenParticle3D",
            props: {
                isStatic: !1,
                name: "body"
            },
            customProps: {
                layer: 0,
                translate: [0, 0, 0],
                rotation: [0, 0, 0, -1],
                scale: [1, 1, 1],
                isPerformanceMode: !0,
                duration: 3,
                looping: !0,
                prewarm: !1,
                startDelayType: 0,
                startDelay: 0,
                startDelayMin: 0,
                startDelayMax: 0,
                startLifetimeType: 0,
                startLifetimeConstant: 3,
                startLifetimeConstantMin: 0,
                startLifetimeConstantMax: 3,
                startLifetimeGradient: {
                    startLifetimes: []
                },
                startLifetimeGradientMin: {
                    startLifetimes: []
                },
                startLifetimeGradientMax: {
                    startLifetimes: []
                },
                startSpeedType: 0,
                startSpeedConstant: 0,
                startSpeedConstantMin: 0,
                startSpeedConstantMax: 0,
                threeDStartSize: !1,
                startSizeType: 0,
                startSizeConstant: .2,
                startSizeConstantMin: 0,
                startSizeConstantMax: .2,
                startSizeConstantSeparate: [.2, 1, 1],
                startSizeConstantMinSeparate: [0, 0, 0],
                startSizeConstantMaxSeparate: [.2, 1, 1],
                threeDStartRotation: !1,
                startRotationType: 0,
                startRotationConstant: 0,
                startRotationConstantMin: 0,
                startRotationConstantMax: 0,
                startRotationConstantSeparate: [0, 0, 0],
                startRotationConstantMinSeparate: [0, 0, 0],
                startRotationConstantMaxSeparate: [0, 0, 0],
                randomizeRotationDirection: 0,
                startColorType: 0,
                startColorConstant: [1, 1, 1, 1],
                startColorConstantMin: [0, 0, 0, 0],
                startColorConstantMax: [1, 1, 1, 1],
                gravity: [0, -9.81, 0],
                gravityModifier: 0,
                simulationSpace: 1,
                scaleMode: 1,
                playOnAwake: !0,
                maxParticles: 100,
                autoRandomSeed: !0,
                randomSeed: 2816181608,
                emission: {
                    enable: !0,
                    emissionRate: 30,
                    emissionRateTip: "Time",
                    bursts: []
                },
                shape: {
                    enable: !0,
                    shapeType: 3,
                    sphereRadius: 1,
                    sphereEmitFromShell: !1,
                    sphereRandomDirection: 0,
                    hemiSphereRadius: 1,
                    hemiSphereEmitFromShell: !1,
                    hemiSphereRandomDirection: 0,
                    coneAngle: 25,
                    coneRadius: 1,
                    coneLength: 5,
                    coneEmitType: 3,
                    coneRandomDirection: 0,
                    boxX: 4,
                    boxY: 6,
                    boxZ: 3,
                    boxRandomDirection: 0,
                    circleRadius: 1,
                    circleArc: 360,
                    circleEmitFromEdge: !1,
                    circleRandomDirection: 0
                },
                colorOverLifetime: {
                    enable: !0,
                    color: {
                        type: 1,
                        constant: [0, 0, 0, 0],
                        gradient: {
                            alphas: [{
                                key: 0,
                                value: .1960784
                            }, {
                                key: .4382391,
                                value: 1
                            }, {
                                key: 1,
                                value: .1960784
                            }],
                            rgbs: [{
                                key: 0,
                                value: [1, 1, 1]
                            }, {
                                key: 1,
                                value: [1, 1, 1]
                            }]
                        },
                        constantMin: [0, 0, 0, 0],
                        constantMax: [0, 0, 0, 0],
                        gradientMax: {
                            alphas: [{
                                key: 0,
                                value: .1960784
                            }, {
                                key: .4382391,
                                value: 1
                            }, {
                                key: 1,
                                value: .1960784
                            }],
                            rgbs: [{
                                key: 0,
                                value: [1, 1, 1]
                            }, {
                                key: 1,
                                value: [1, 1, 1]
                            }]
                        }
                    }
                },
                sizeOverLifetime: {
                    enable: !0,
                    size: {
                        type: 2,
                        separateAxes: !1,
                        gradient: {
                            sizes: [{
                                key: 0,
                                value: 0
                            }, {
                                key: .5028449,
                                value: .0637798
                            }, {
                                key: 1,
                                value: 0
                            }]
                        },
                        gradientX: {
                            sizes: [{
                                key: 0,
                                value: 0
                            }, {
                                key: .5028449,
                                value: .0637798
                            }, {
                                key: 1,
                                value: 0
                            }]
                        },
                        gradientY: {
                            sizes: [{
                                key: 0,
                                value: 0
                            }, {
                                key: 1,
                                value: 1
                            }]
                        },
                        gradientZ: {
                            sizes: [{
                                key: 0,
                                value: 0
                            }, {
                                key: 1,
                                value: 1
                            }]
                        },
                        constantMin: 0,
                        constantMax: 0,
                        constantMinSeparate: [0, 0, 0],
                        constantMaxSeparate: [0, 0, 0],
                        gradientMin: {
                            sizes: [{
                                key: 0,
                                value: 0
                            }, {
                                key: .5011629,
                                value: .1382243
                            }, {
                                key: 1,
                                value: 0
                            }]
                        },
                        gradientMax: {
                            sizes: [{
                                key: 0,
                                value: 0
                            }, {
                                key: .5028449,
                                value: .0637798
                            }, {
                                key: 1,
                                value: 0
                            }]
                        },
                        gradientXMin: {
                            sizes: [{
                                key: 0,
                                value: 0
                            }, {
                                key: .5011629,
                                value: .1382243
                            }, {
                                key: 1,
                                value: 0
                            }]
                        },
                        gradientXMax: {
                            sizes: [{
                                key: 0,
                                value: 0
                            }, {
                                key: .5028449,
                                value: .0637798
                            }, {
                                key: 1,
                                value: 0
                            }]
                        },
                        gradientYMin: {
                            sizes: [{
                                key: 0,
                                value: 1
                            }, {
                                key: 1,
                                value: 1
                            }]
                        },
                        gradientYMax: {
                            sizes: [{
                                key: 0,
                                value: 0
                            }, {
                                key: 1,
                                value: 1
                            }]
                        },
                        gradientZMin: {
                            sizes: [{
                                key: 0,
                                value: 1
                            }, {
                                key: 1,
                                value: 1
                            }]
                        },
                        gradientZMax: {
                            sizes: [{
                                key: 0,
                                value: 0
                            }, {
                                key: 1,
                                value: 1
                            }]
                        }
                    }
                },
                renderMode: 0,
                stretchedBillboardCameraSpeedScale: 0,
                stretchedBillboardSpeedScale: 0,
                stretchedBillboardLengthScale: 2,
                sortingFudge: 0,
                texturePath: "res/textures/1.jpg"
            },
            components: {},
            child: []
        }]
    }, t.hitPt = {
        type: "Sprite3D",
        props: {
            name: "hitpt"
        },
        customProps: {
            translate: [0, 0, 0],
            rotation: [0, 0, 0, -1],
            scale: [1, 1, 1]
        },
        child: [{
            type: "ShuriKenParticle3D",
            props: {
                isStatic: !1,
                name: "body"
            },
            customProps: {
                layer: 0,
                translate: [0, 0, 0],
                rotation: [0, 0, 0, -1],
                scale: [1, 1, 1],
                isPerformanceMode: !0,
                duration: .5,
                looping: !1,
                prewarm: !1,
                startDelayType: 0,
                startDelay: 0,
                startDelayMin: 0,
                startDelayMax: 0,
                startLifetimeType: 0,
                startLifetimeConstant: .5,
                startLifetimeConstantMin: 0,
                startLifetimeConstantMax: .5,
                startLifetimeGradient: {
                    startLifetimes: []
                },
                startLifetimeGradientMin: {
                    startLifetimes: []
                },
                startLifetimeGradientMax: {
                    startLifetimes: []
                },
                startSpeedType: 0,
                startSpeedConstant: 2,
                startSpeedConstantMin: 0,
                startSpeedConstantMax: 2,
                threeDStartSize: !1,
                startSizeType: 0,
                startSizeConstant: .4,
                startSizeConstantMin: 0,
                startSizeConstantMax: .4,
                startSizeConstantSeparate: [.4, 1, 1],
                startSizeConstantMinSeparate: [0, 0, 0],
                startSizeConstantMaxSeparate: [.4, 1, 1],
                threeDStartRotation: !1,
                startRotationType: 0,
                startRotationConstant: 0,
                startRotationConstantMin: 0,
                startRotationConstantMax: 0,
                startRotationConstantSeparate: [0, 0, 0],
                startRotationConstantMinSeparate: [0, 0, 0],
                startRotationConstantMaxSeparate: [0, 0, 0],
                randomizeRotationDirection: 0,
                startColorType: 0,
                startColorConstant: [1, 1, 1, 1],
                startColorConstantMin: [0, 0, 0, 0],
                startColorConstantMax: [1, 1, 1, 1],
                gravity: [0, -9.81, 0],
                gravityModifier: 0,
                simulationSpace: 1,
                scaleMode: 1,
                playOnAwake: !1,
                maxParticles: 100,
                autoRandomSeed: !0,
                randomSeed: 2710190208,
                emission: {
                    enable: !0,
                    emissionRate: 50,
                    emissionRateTip: "Time",
                    bursts: []
                },
                shape: {
                    enable: !0,
                    shapeType: 0,
                    sphereRadius: .01,
                    sphereEmitFromShell: !1,
                    sphereRandomDirection: 0,
                    hemiSphereRadius: .01,
                    hemiSphereEmitFromShell: !1,
                    hemiSphereRandomDirection: 0,
                    coneAngle: 25,
                    coneRadius: .01,
                    coneLength: 5,
                    coneEmitType: 0,
                    coneRandomDirection: 0,
                    boxX: 4,
                    boxY: 6,
                    boxZ: 3,
                    boxRandomDirection: 0,
                    circleRadius: .01,
                    circleArc: 360,
                    circleEmitFromEdge: !1,
                    circleRandomDirection: 0
                },
                velocityOverLifetime: {
                    enable: !0,
                    space: 0,
                    velocity: {
                        type: 2,
                        constant: [0, 0, 0],
                        gradientX: {
                            velocitys: []
                        },
                        gradientY: {
                            velocitys: []
                        },
                        gradientZ: {
                            velocitys: []
                        },
                        constantMin: [-1, 1, 1],
                        constantMax: [0, 0, 0],
                        gradientXMin: {
                            velocitys: []
                        },
                        gradientXMax: {
                            velocitys: []
                        },
                        gradientYMin: {
                            velocitys: []
                        },
                        gradientYMax: {
                            velocitys: []
                        },
                        gradientZMin: {
                            velocitys: []
                        },
                        gradientZMax: {
                            velocitys: []
                        }
                    }
                },
                colorOverLifetime: {
                    enable: !0,
                    color: {
                        type: 1,
                        constant: [0, 0, 0, 0],
                        gradient: {
                            alphas: [{
                                key: 0,
                                value: 0
                            }, {
                                key: .2235294,
                                value: 1
                            }, {
                                key: 1,
                                value: 0
                            }],
                            rgbs: [{
                                key: 0,
                                value: [1, 1, 1]
                            }, {
                                key: 1,
                                value: [1, 1, 1]
                            }]
                        },
                        constantMin: [0, 0, 0, 0],
                        constantMax: [0, 0, 0, 0],
                        gradientMax: {
                            alphas: [{
                                key: 0,
                                value: 0
                            }, {
                                key: .2235294,
                                value: 1
                            }, {
                                key: 1,
                                value: 0
                            }],
                            rgbs: [{
                                key: 0,
                                value: [1, 1, 1]
                            }, {
                                key: 1,
                                value: [1, 1, 1]
                            }]
                        }
                    }
                },
                sizeOverLifetime: {
                    enable: !0,
                    size: {
                        type: 0,
                        separateAxes: !1,
                        gradient: {
                            sizes: [{
                                key: 0,
                                value: 0
                            }, {
                                key: .499749,
                                value: .114205
                            }, {
                                key: 1,
                                value: 0
                            }]
                        },
                        gradientX: {
                            sizes: [{
                                key: 0,
                                value: 0
                            }, {
                                key: .499749,
                                value: .114205
                            }, {
                                key: 1,
                                value: 0
                            }]
                        },
                        gradientY: {
                            sizes: [{
                                key: 0,
                                value: 0
                            }, {
                                key: 1,
                                value: 1
                            }]
                        },
                        gradientZ: {
                            sizes: [{
                                key: 0,
                                value: 0
                            }, {
                                key: 1,
                                value: 1
                            }]
                        },
                        constantMin: 0,
                        constantMax: 0,
                        constantMinSeparate: [0, 0, 0],
                        constantMaxSeparate: [0, 0, 0],
                        gradientMin: {
                            sizes: []
                        },
                        gradientMax: {
                            sizes: [{
                                key: 0,
                                value: 0
                            }, {
                                key: .499749,
                                value: .114205
                            }, {
                                key: 1,
                                value: 0
                            }]
                        },
                        gradientXMin: {
                            sizes: []
                        },
                        gradientXMax: {
                            sizes: [{
                                key: 0,
                                value: 0
                            }, {
                                key: .499749,
                                value: .114205
                            }, {
                                key: 1,
                                value: 0
                            }]
                        },
                        gradientYMin: {
                            sizes: []
                        },
                        gradientYMax: {
                            sizes: [{
                                key: 0,
                                value: 0
                            }, {
                                key: 1,
                                value: 1
                            }]
                        },
                        gradientZMin: {
                            sizes: []
                        },
                        gradientZMax: {
                            sizes: [{
                                key: 0,
                                value: 0
                            }, {
                                key: 1,
                                value: 1
                            }]
                        }
                    }
                },
                renderMode: 0,
                stretchedBillboardCameraSpeedScale: 0,
                stretchedBillboardSpeedScale: 0,
                stretchedBillboardLengthScale: 2,
                sortingFudge: 0,
                texturePath: "res/textures/1.jpg"
            },
            components: {},
            child: []
        }]
    }, t;
}(), UIManager = function () {
    function t() {
        if (this.__scaleH = 1, this.__showGlobal = !1, this.__showFriend = !1, this.__canSkipRevivePage = !1,
            this.__canWatchRevive = !0, this.__canCostRevive = !0, this.__canShareRevive = !0,
            this.__showGetPropsCounter = 0, this.__coinUpPercent = 1, this.__hideMode = "",
            t.Instance) return t.Instance;
        t.Instance = this, this.__scaleH = Laya.Browser.width / 1080, this.__loadingPage = new ui.LoadingUI(),
            this.__addLoading();
    }
    return t.prototype.resetScale = function () {
        this.__scaleH = Laya.Browser.width / 1080, this.__loadingPage && this.__loadingPage.scale(this.__scaleH, this.__scaleH),
            this.__gamePage && this.__gamePage.scale(this.__scaleH, this.__scaleH), this.__friendRankPage && this.__friendRankPage.scale(this.__scaleH, this.__scaleH),
            this.__endPage && this.__endPage.scale(this.__scaleH, this.__scaleH), this.__tipsPage && this.__tipsPage.scale(this.__scaleH, this.__scaleH),
            this.__groupRankPage && this.__groupRankPage.scale(this.__scaleH, this.__scaleH);
    }, t.prototype.initData = function () {
        this.__coinsChange(), this.__gamePage.bestScoreText.text = GameData.Instance.bestScore.toString(),
            MD_WXGameOpenData.calcBestScore(GameData.Instance.bestScore), this.__choosePlayer(MD_UserData.getUserData().chooseRole);
    }, t.prototype.gameInit = function () {
        this.__removeLoading(), this.__createAllPages();
        var t = MD_UserData.getUserData(), e = wx.loadFont("res/font/04B_03B_.ttf");
        e || (e = "arial"), this.__setScoreFont(e), MD_ReviveSystem.init({
            root: GameSetting.root,
            gameName: GameSetting.gameName,
            scoreFont: e,
            adsId: "adunit-66de6bfc79a8c8f8"
        }, this.__shareRevive.bind(this), this.__watchRevive.bind(this), this.__costRevive.bind(this), this.__skipReviveEndPage.bind(this)),
            MD_WXGameOpenData.init({
                openid: t.openid,
                scoreFont: e,
                friendRankSprite: this.__friendRankPage.rankSprite,
                groupRankSprite: this.__groupRankPage.rankSprite,
                endRankSprite: this.__endPage.rankSprite,
                reviveRankSprite: MD_ReviveSystem.getRankSprite()
            }), MD_WXGame.init({
                shareInfo: {
                    title: "这个游戏有一种魔力，跳到根本停不下来！",
                    imageUrl: "res/sharingImages/sharing1.jpg",
                    query: ""
                }
            }), MD_CharactersSystem.init({
                scoreFont: e,
                cellWidth: 300,
                unlockCharacters: t.buyRole,
                useCharacterIndex: t.chooseRole,
                root: GameSetting.root,
                gameName: GameSetting.gameName,
                characterInfos: [{
                    cost: 0,
                    unlocked: 1,
                    name: "随机",
                    description: "你猜我猜你猜我是谁？"
                }, {
                    cost: 0,
                    unlocked: 1,
                    name: "阿汪",
                    description: "世界上多的是你不知道的事～"
                }, {
                    cost: 100,
                    unlocked: 0,
                    name: "小牙刷",
                    description: "要努力要乖，要不断进步～"
                }, {
                    cost: 400,
                    unlocked: 0,
                    name: "小鸡",
                    description: "试试看，你能追到我吗？"
                }, {
                    cost: 400,
                    unlocked: 0,
                    name: "企鹅",
                    description: "讲究技巧，方能事半功倍～"
                }, {
                    cost: 850,
                    unlocked: 0,
                    name: "小丑",
                    description: "如果你愿意一层一层的…跳上去…"
                }, {
                    cost: 1225,
                    unlocked: 0,
                    name: "豆腐君",
                    description: "别太较真，是你的跑不了～"
                }, {
                    cost: 1225,
                    unlocked: 0,
                    name: "小恐龙",
                    description: "嘻嘻，一不小心又赢了呢～"
                }, {
                    cost: 4725,
                    unlocked: 0,
                    name: "小天使",
                    description: "我会陪着你，无论去哪里～"
                }, {
                    cost: 4725,
                    unlocked: 0,
                    name: "小恶魔",
                    description: "想得到最强者的能力吗？"
                }, {
                    cost: 1225,
                    unlocked: 0,
                    name: "僵尸",
                    description: "啊……呜……"
                }, {
                    cost: 1225,
                    unlocked: 0,
                    name: "道长",
                    description: "紫东正气在，百晦破邪灵"
                }, {
                    cost: 2975,
                    unlocked: 0,
                    name: "大眼怪",
                    description: "这是一场没有终点的旅行"
                }, {
                    cost: 2975,
                    unlocked: 0,
                    name: "独脚妹",
                    description: "一条腿反而蹦的更快！"
                }, {
                    cost: 2975,
                    unlocked: 0,
                    name: "一只耳",
                    description: "脚底抹油，赶紧开溜"
                }, {
                    cost: 2975,
                    unlocked: 0,
                    name: "黑猫",
                    description: "我就是黑猫警长"
                }, {
                    cost: 4725,
                    unlocked: 0,
                    name: "金角",
                    description: "想吃肉"
                }, {
                    cost: 4725,
                    unlocked: 0,
                    name: "银角",
                    description: "我叫你一声，你敢答应么？"
                }]
            }, this.__playerIndexChange.bind(this), this.__returnMainPage.bind(this)), MD_WXGame.bindOnShow(this, this.__onShowWX),
            MD_WXGame.bindOnHide(this, this.__onHideWX), MD_GlobalRank.init({
                scoreFont: e,
                root: GameSetting.root,
                gameName: GameSetting.gameName,
                rankPage: this.__friendRankPage
            }), MD_MissionSystem.init({
                root: GameSetting.root,
                gameName: GameSetting.gameName
            }, this.__missionBack.bind(this)), MD_TimerAwardSystem.init({
                root: GameSetting.root,
                gameName: GameSetting.gameName,
                img: this.__gamePage.awardBtn,
                txt: this.__gamePage.timeTxt,
                remainTime: t.timeRemaining
            }, this.__getPrizeOk.bind(this)), MD_GetPropSystem.init({
                root: GameSetting.root,
                gameName: GameSetting.gameName,
                shareOKFunc: this.__sharePropOK.bind(this),
                getPrizeOkFunc: this.__coinsChange.bind(this)
            }), MD_PlayerBoxesSystem.init({
                root: GameSetting.root,
                gameName: GameSetting.gameName
            }), GameData.Instance.initAllGameData(), MD_PlayerBoxesSystem.getRoleStatusByShare(this.__showPropsBtn.bind(this)),
            MD_RecordSystem.init({
                root: GameSetting.root,
                gameName: GameSetting.gameName
            }), MD_ShareSystem.init();
        var i = wx.getLaunchOptionsSync();
        i.shareTicket && i.query && parseInt(i.query.place_no) === MD_RecordSystem.SharePos.GroupRank && this.__showGroupRankPage(i.shareTicket);
    }, t.prototype.__sharePropOK = function (t) {
        setTimeout(function () {
            this.__endPage.animPlayer.skin = "game/playerm" + t + ".png", this.__endPage.getPropsBtn.visible = !0,
                this.__endPage.animPlayer.visible = !0, this.__endPage.ani2.play(0, !1);
        }.bind(this), 5e3);
    }, t.prototype.__showPropsBtn = function () {
        0 === MD_PlayerBoxesSystem.getStats().length ? (this.__gamePage.getPropsBtn.visible = !1,
            this.__endPage.getPropsBtn.visible = !1) : (this.__gamePage.getPropsBtn.visible = !0,
                this.__endPage.getPropsBtn.visible = !0);
    }, t.prototype.__getPrizeOk = function () {
        this.__coinsChange();
    }, t.prototype.__missionBack = function () {
        GameManager.Instance.gameState === GameState.END ? this.__returnEndPage() : this.__returnMainPage();
    }, t.prototype.__onHideWX = function (t) {
        this.__hideMode = t.mode ? t.mode : "";
    }, t.prototype.__onShowWX = function (t) {
        if (t.shareTicket && t.query && parseInt(t.query.place_no) === MD_RecordSystem.SharePos.GroupRank) {
            if ("hide" === this.__hideMode || "launchMiniProgram" === this.__hideMode) return;
            this.__showGroupRankPage(t.shareTicket), GameManager.Instance.showGroupRank();
        } else GameManager.Instance.gameState === GameState.PLAYING && GameManager.Instance.gameStart();
    }, t.prototype.__createAllPages = function () {
        this.__gamePage = new ui.GamePageUI(), this.__gamePage.scale(this.__scaleH, this.__scaleH),
            this.__gamePage.startBtn.on("click", this, this.__gameStart), this.__gamePage.musicBtn.on("click", this, this.__enableMusic),
            this.__gamePage.vibrBtn.on("click", this, this.__enableVibrate), this.__gamePage.rankBtn.on("click", this, this.__showFriendRankPage),
            this.__gamePage.bestScoreText.text = GameData.Instance.bestScore.toString(), this.__gamePage.chooseBtn.on("click", this, this.__showChoosePage),
            this.__gamePage.inviteBtn.on("click", this, this.__inviteFriend), this.__gamePage.missionBtn.on("click", this, this.__showMissionPage),
            this.__gamePage.getPropsBtn.on("click", this, this.__showPlayerBoxedPage), this.__gamePage.musicClose.visible = !1,
            Laya.stage.addChild(this.__gamePage), this.__tipsPage = new ui.TipsPageUI(), this.__tipsPage.visible = !1,
            this.__tipsPage.scale(this.__scaleH, this.__scaleH), Laya.stage.addChild(this.__tipsPage),
            this.__endPage = new ui.EndPagUI(), this.__endPage.visible = !1, this.__endPage.restartBtn.on("click", this, this.__gameReset),
            this.__endPage.mainBtn.on("click", this, this.__returnMainPage), this.__endPage.inviteBtn.on("click", this, this.__inviteFight),
            this.__endPage.showRankBtn.on("click", this, this.__showFriendRankPage), this.__endPage.getPropsBtn.on("click", this, this.__showPlayerBoxedPage),
            this.__endPage.missionBtn.on("click", this, this.__showMissionPage), this.__endPage.scale(this.__scaleH, this.__scaleH),
            Laya.stage.addChild(this.__endPage), this.__friendRankPage = new ui.RankPageUI(),
            this.__friendRankPage.visible = !1, this.__friendRankPage.scale(this.__scaleH, this.__scaleH),
            this.__friendRankPage.mainBtn.on("click", this, this.__returnMainPage), this.__friendRankPage.showGroupRankBtn.on("click", this, this.__inviteGroup),
            this.__friendRankPage.previousBtn.on("click", this, this.__showPreviousRankList),
            this.__friendRankPage.nextBtn.on("click", this, this.__showNextRankList), this.__friendRankPage.friendRankBtn.on("click", this, this.__showFriendRankPage),
            this.__friendRankPage.globalRankBtn.on("click", this, this.__showGlobalRank), Laya.stage.addChild(this.__friendRankPage),
            this.__groupRankPage = new ui.GroupRankPageUI(), this.__groupRankPage.visible = !1,
            this.__groupRankPage.scale(this.__scaleH, this.__scaleH), this.__groupRankPage.joinGameBtn.on("click", this, this.__gameReset),
            this.__groupRankPage.mainBtn.on("click", this, this.__returnMainPage), this.__groupRankPage.previousBtn.on("click", this, this.__showPreviousRankList),
            this.__groupRankPage.nextBtn.on("click", this, this.__showNextRankList), Laya.stage.addChild(this.__groupRankPage);
        var t = MD_UserData.getUserData();
        this.__coinUpPercent = 1, this.__gamePage.inviteCoinUp.visible = t.showId && !0,
            this.__gamePage.startCoinUp.visible = !1, this.__endPage.inviteCoinUp.visible = t.showId && !0,
            this.__endPage.againCoinUp.visible = !1;
    }, t.prototype.__showMissionPage = function () {
        this.__hideAllPage(), this.__gamePage.pointBtn.visible = !1, GameManager.isShowBannar && (GameSetting.bannerAdState === BannerAdState.DAILY ? MD_AdsSystem.showBanner(!1) : (MD_AdsSystem.createBannerId(GameSetting.dailyPageBannerAd, !0),
            GameSetting.bannerAdState = BannerAdState.DAILY)), MD_MissionSystem.show();
    }, t.prototype.__setScoreFont = function (t) {
        this.__gamePage.bestScoreText.font = t, this.__gamePage.coinText.font = t, this.__endPage.scoreText.font = t,
            this.__tipsPage.scoreText.font = t;
    }, t.prototype.__choosePlayer = function (t) {
        if (this.__gamePage.playerImg.skin = "game/playerm" + t + ".png", 0 === t) {
            var e = MD_UserData.getUserData().buyRole;
            t = e[Math.floor(Math.random() * e.length)];
        }
        PlayerControl.Instance.choosePlayer(t - 1);
    }, t.prototype.__playerIndexChange = function (t) {
        this.__choosePlayer(MD_UserData.getUserData().chooseRole), this.__gameStart();
    }, t.prototype.__showChoosePage = function () {
        this.__hideAllPage(), GameManager.isShowBannar && (GameSetting.bannerAdState === BannerAdState.CHOOSE ? MD_AdsSystem.showBanner(!1) : (MD_AdsSystem.createBannerId(GameSetting.choosePageBannerAd, !0),
            GameSetting.bannerAdState = BannerAdState.CHOOSE)), MD_CharactersSystem.show();
    }, t.prototype.__showPlayerBoxedPage = function () {
        this.__hideAllPage(), GameManager.Instance.gameState === GameState.END ? (this.__endPage.visible = !0,
            MD_WXGameOpenData.showEndRankList(), GameManager.isShowBannar && (GameSetting.bannerAdState === BannerAdState.END ? MD_AdsSystem.showBanner(!1) : (MD_AdsSystem.createBannerId(GameSetting.endPageBannerAd, !0),
                GameSetting.bannerAdState = BannerAdState.END))) : this.__gamePage.visible = !0,
            MD_PlayerBoxesSystem.show();
    }, t.prototype.__showPreviousRankList = function () {
        this.__showGlobal ? MD_GlobalRank.previousPage() : MD_WXGameOpenData.previouPage();
    }, t.prototype.__showNextRankList = function () {
        this.__showGlobal ? MD_GlobalRank.nextPage() : MD_WXGameOpenData.nextPage();
    }, t.prototype.__showGlobalRank = function () {
        this.__showGlobal || (this.__hideAllPage(), this.__friendRankPage.visible = !0,
            this.__showGlobal = !0, MD_GlobalRank.show());
    }, t.prototype.__showFriendRankPage = function () {
        this.__showFriend || (this.__hideAllPage(), MD_GameLogin.getAuthor() || MD_GameLogin.showLoginButton(this.__showGlobalRank.bind(this)),
            this.__showFriend = !0, this.__friendRankPage.visible = !0, MD_WXGameOpenData.showFriendRankList());
    }, t.prototype.__showGroupRankPage = function (t) {
        this.__hideAllPage(), this.__groupRankPage.visible = !0, MD_WXGameOpenData.showGroupRankList(t);
    }, t.prototype.__showReviveEndPage = function () {
        var t = MD_UserData.getUserData();
        GameManager.isShowBannar && (GameSetting.bannerAdState === BannerAdState.REVIVE ? MD_AdsSystem.showBanner(!1) : (MD_AdsSystem.createBannerId(GameSetting.revivePageBannerAd, !0),
            GameSetting.bannerAdState = BannerAdState.REVIVE)), MD_ReviveSystem.showEndRevivePage(GameData.Instance.score, t.showId && this.__canShareRevive, this.__canCostRevive, this.__canWatchRevive);
    }, t.prototype.__inviteFriend = function () {
        MD_RecordSystem.saveClickRecord("gp", MD_RecordSystem.SharePos.GamePage);
        var t = {
            title: "这个游戏有毒，跳到根本停不下来！",
            imageUrl: "res/sharingImages/sharing" + (Math.floor(4 * Math.random()) + 1) + ".jpg",
            query: "openid=" + MD_UserData.getUserData().openid + "&place_no=" + MD_RecordSystem.SharePos.GamePage
        };
        MD_WXGame.setShareInfo(t), MD_WXGame.shareAppMessage();
        var e = this, i = MD_UserData.getUserData();
        MD_ShareSystem.shareAppMessage(function () {
            e.__gamePage.inviteCoinUp.visible = !1, e.__gamePage.startCoinUp.visible = i.showId && !0,
                e.__endPage.inviteCoinUp.visible = !1, e.__endPage.againCoinUp.visible = i.showId && !0,
                e.__coinUpPercent = 1.5;
        });
    }, t.prototype.__inviteFight = function () {
        MD_RecordSystem.saveClickRecord("ic", MD_RecordSystem.SharePos.InviteChanllenge);
        var t = {
            title: "史上最牛！能破我记录的人还没有出生！",
            imageUrl: "res/sharingImages/sharing" + (Math.floor(4 * Math.random()) + 1) + ".jpg",
            query: "openid=" + MD_UserData.getUserData().openid + "&place_no=" + MD_RecordSystem.SharePos.InviteChanllenge
        };
        MD_WXGame.setShareInfo(t), MD_WXGame.shareAppMessage();
        var e = this, i = MD_UserData.getUserData();
        MD_ShareSystem.shareAppMessage(function () {
            e.__gamePage.inviteCoinUp.visible = !1, e.__gamePage.startCoinUp.visible = i.showId && !0,
                e.__endPage.inviteCoinUp.visible = !1, e.__endPage.againCoinUp.visible = i.showId && !0,
                e.__coinUpPercent = 1.5;
        });
    }, t.prototype.__inviteGroup = function () {
        MD_RecordSystem.saveClickRecord("gr", MD_RecordSystem.SharePos.GroupRank);
        var t = {
            title: "这个游戏有毒，跳到根本停不下来！",
            imageUrl: "res/sharingImages/sharing" + (Math.floor(4 * Math.random()) + 1) + ".jpg",
            query: "openid=" + MD_UserData.getUserData().openid + "&place_no=" + MD_RecordSystem.SharePos.GroupRank
        };
        MD_WXGame.setShareInfo(t), MD_WXGame.shareAppMessage();
    }, t.prototype.__returnEndPage = function () {
        this.__hideAllPage(), this.__endPage.visible = !0, GameManager.isShowBannar && (GameSetting.bannerAdState === BannerAdState.END ? MD_AdsSystem.showBanner(!1) : (MD_AdsSystem.createBannerId(GameSetting.endPageBannerAd, !0),
            GameSetting.bannerAdState = BannerAdState.END)), MD_WXGameOpenData.showEndRankList();
    }, t.prototype.__returnMainPage = function () {
        GameManager.Instance.gameState === GameState.END && (this.__choosePlayer(MD_UserData.getUserData().chooseRole),
            GameManager.Instance.gameReset(), GameManager.Instance.gameIdle()), this.__hideAllPage(),
            this.__coinsChange(), this.__gamePage.visible = !0, MD_PlayerBoxesSystem.getRoleStatusByShare(this.__showPropsBtn.bind(this)),
            MD_TimerAwardSystem.show(), MD_WXGame.showClubButton();
    }, t.prototype.__enableVibrate = function () {
        GameSetting.vibrOn = !GameSetting.vibrOn, this.__gamePage.vibrBtn.skin = GameSetting.vibrOn ? "game/vibron.png" : "game/vibroff.png";
    }, t.prototype.__enableMusic = function () {
        var t = this.__gamePage.musicClose.visible;
        this.__gamePage.musicClose.visible = !t, SoundManager.Instance.enabledMusic(!t);
    }, t.prototype.hideTips = function () {
        this.__tipsPage.tips.visible = !1;
    }, t.prototype.__gameStart = function () {
        GameManager.Instance.gameStart(), this.__hideAllPage(), this.__tipsPage.visible = !0,
            this.__tipsPage.tips.visible = !0;
    }, t.prototype.__gameReborn = function () {
        this.__hideAllPage(), this.__tipsPage.visible = !0, GameManager.Instance.gameReborn();
    }, t.prototype.__costRevive = function () {
        this.__canCostRevive = !1, this.__gameReborn();
    }, t.prototype.__shareRevive = function () {
        this.__canShareRevive = !1, this.__gameReborn();
    }, t.prototype.__watchRevive = function () {
        this.__canWatchRevive = !1, this.__gameReborn();
    }, t.prototype.__skipReviveEndPage = function () {
        this.__canSkipRevivePage = !0, this.showGameEnd();
    }, t.prototype.__gameReset = function () {
        this.__choosePlayer(MD_UserData.getUserData().chooseRole), GameManager.Instance.gameReset(),
            this.__gameStart(), wx.triggerGC();
    }, t.prototype.__addLoading = function () {
        this.__loadingPage.scale(this.__scaleH, this.__scaleH), Laya.stage.addChild(this.__loadingPage);
    }, t.prototype.loadingValChange = function (t) {
        this.__loadingPage.loadingBar.width = 736 * t, this.__loadingPage.loadingC.x = 195 + 700 * t,
            this.__loadingPage.loadingB.x = 158 + 700 * t, this.__loadingPage.loadingVal.text = Math.floor(100 * t) + "%";
    }, t.prototype.__removeLoading = function () {
        this.__loadingPage.visible = !1, setTimeout(function () {
            Laya.stage.removeChild(this.__loadingPage);
        }, 1e3);
    }, t.prototype.showGameEnd = function () {
        var t = this, e = MD_UserData.getUserData();
        if (!this.__canSkipRevivePage && (e.showId && this.__canShareRevive || this.__canCostRevive || this.__canWatchRevive)) return MD_WXGameOpenData.showRevivePage(GameData.Instance.score),
            void Laya.timer.once(500, this, this.__showReviveEndPage);
        this.__canSkipRevivePage = !1, this.__canCostRevive = !0, this.__canWatchRevive = !0,
            this.__canShareRevive = !0, this.__hideAllPage();
        var i = GameData.Instance.calcBest();
        wx.showLoading({}), i && (MD_GameLogin.uploadBetterScore(GameData.Instance.score),
            wx.setStorageSync("bestScore", GameData.Instance.bestScore.toString())), MD_WXGameOpenData.calcBestScore(GameData.Instance.score);
        setTimeout(function () {
            wx.hideLoading({}), MD_WXGameOpenData.showEndRankList(), t.__showGameEndUI();
        }, 500), this.__endPage.inviteBtn.skin = i ? "end/e_share.png" : "end/e_challenge.png",
            this.__endPage.newRecord.visible = i, this.__endPage.bestScoreText.text = "历史最佳 " + GameData.Instance.bestScore.toString(),
            this.__gamePage.bestScoreText.text = GameData.Instance.bestScore.toString(), GameData.Instance.coins > 0 && MD_GameLogin.uploadGetCoins(Math.ceil(GameData.Instance.coins * this.__coinUpPercent)),
            MD_PlayerBoxesSystem.getRoleStatusByShare(this.__showPropsBtn.bind(this)), GameData.Instance.score > 0 && this.__showGetPropsCounter++,
            3 === this.__showGetPropsCounter && (this.__showGetPropsCounter = 0, MD_GetPropSystem.showGetBox()),
            this.__coinUpPercent = 1, this.__gamePage.inviteCoinUp.visible = e.showId && !0,
            this.__gamePage.startCoinUp.visible = !1, this.__endPage.inviteCoinUp.visible = e.showId && !0,
            this.__endPage.againCoinUp.visible = !1;
    }, t.prototype.__hideAllPage = function () {
        MD_WXGame.hideClubButton(), this.__tipsPage.visible = !1, this.__gamePage.visible = !1,
            MD_TimerAwardSystem.hide(), this.__endPage.visible = !1, this.__friendRankPage.visible = !1,
            this.__groupRankPage.visible = !1, MD_WXGameOpenData.closeRankList(), MD_CharactersSystem.hide(),
            MD_ReviveSystem.hide(), GameManager.isShowBannar && MD_AdsSystem.hideBanner(), this.__showFriend = !1,
            this.__showGlobal = !1, MD_GlobalRank.hide(), MD_MissionSystem.hide(), MD_GetPropSystem.hide(),
            MD_PlayerBoxesSystem.hide(), MD_GameLogin.hideLoginButton();
    }, t.prototype.__coinsChange = function () {
        for (var t = "", e = MD_UserData.getUserData().goldCoin, i = 4; i > 0 && !(e / Math.pow(10, i) >= 1); i--) t += "0";
        t += e, this.__gamePage.coinText.text = t;
    }, t.prototype.__showGameEndUI = function () {
        this.__endPage.visible = !0, GameManager.isShowBannar && (GameSetting.bannerAdState === BannerAdState.END ? MD_AdsSystem.showBanner(!1) : (MD_AdsSystem.createBannerId(GameSetting.endPageBannerAd, !0),
            GameSetting.bannerAdState = BannerAdState.END)), this.__endPage.scoreText.text = GameData.Instance.score.toString();
    }, t.prototype.showScoreChange = function (t) {
        this.__tipsPage.scoreText.text = t.toString();
    }, t;
}();

!function (t) {
    t[t.BGM = 0] = "BGM", t[t.HIT = 1] = "HIT", t[t.CHANGE = 2] = "CHANGE", t[t.LOSE = 3] = "LOSE",
        t[t.EAT = 4] = "EAT";
}(SoundName || (SoundName = {}));

var GameState, SoundManager = function () {
    function t() {
        if (this.__audioPause = !0, t.Instance) return t.Instance;
        t.Instance = this;
    }
    return t.prototype.playSound = function (t) {
        switch (t) {
            case SoundName.BGM:
                Laya.SoundManager.playMusic("res/sound/bgm.mp3", 0);
                break;

            case SoundName.HIT:
                Laya.SoundManager.playSound("res/sound/hit.mp3");
                break;

            case SoundName.LOSE:
                Laya.SoundManager.playSound("res/sound/lose.mp3");
                break;

            case SoundName.CHANGE:
                Laya.SoundManager.playSound("res/sound/change.mp3");
                break;

            case SoundName.EAT:
                Laya.SoundManager.playSound("res/sound/eat.mp3");
        }
    }, t.prototype.__playBgm = function () {
        this.__audioPause && (this.playSound(SoundName.BGM), this.__audioPause = !1);
    }, t.prototype.__audioPaused = function () {
        this.__audioPause = !0;
    }, t.prototype.gameInit = function () {
        Laya.SoundManager.autoReleaseSound = !1, this.__playBgm(), Laya.Browser.onMiniGame && (wx.onAudioInterruptionBegin(this.__audioPaused.bind(this)),
            wx.onAudioInterruptionEnd(this.__playBgm.bind(this)), wx.onShow(this.__playBgm.bind(this)),
            wx.onHide(this.__audioPaused.bind(this)));
    }, t.prototype.enabledMusic = function (t) {
        Laya.SoundManager.muted = !!t;
    }, t;
}(), SceneManager = function () {
    function t() {
        if (t.Instance) return t.Instance;
        t.Instance = this, this.__scene = new Laya.Scene();
    }
    return t.prototype.gameInit = function () {
        this.__scene.ambientColor = new Laya.Vector3(.199, .199, .199), Laya.stage.addChild(this.__scene);
    }, t.prototype.addToScene = function (t) {
        this.__scene.addChild(t);
    }, t;
}(), ResourceManager = function () {
    function t() {
        if (this.__assetArr = [{
            url: "res/atlas/characterSystem.atlas",
            type: Laya.Loader.ATLAS
        }, {
            url: "res/atlas/end.atlas",
            type: Laya.Loader.ATLAS
        }, {
            url: "res/atlas/game.atlas",
            type: Laya.Loader.ATLAS
        }, {
            url: "res/atlas/plugins.atlas",
            type: Laya.Loader.ATLAS
        }, {
            url: "res/atlas/rank.atlas",
            type: Laya.Loader.ATLAS
        }, {
            url: "res/atlas/mission.atlas",
            type: Laya.Loader.ATLAS
        }, {
            url: "res/atlas/playerBoxes.atlas",
            type: Laya.Loader.ATLAS
        }, {
            url: "res/dragonbones/NewProject.sk",
            type: Laya.Loader.BUFFER
        }, {
            url: "characterSystem/c_bg.png",
            type: Laya.Loader.IMAGE
        }, {
            url: "rank/defaultimg.png",
            type: Laya.Loader.IMAGE
        }, {
            url: "mission/m_bg.png",
            type: Laya.Loader.IMAGE
        }], this.__assetArr3D = [{
            url: "res/textures/1.jpg",
            clas: Laya.Texture2D,
            params: [!1, !1, Laya.WebGLContext.RGB, !1]
        }, {
            url: "res/textures/1.png",
            clas: Laya.Texture2D,
            params: [!1, !1, Laya.WebGLContext.RGBA, !1]
        }, {
            url: "res/textures/2.png",
            clas: Laya.Texture2D,
            params: [!1, !1, Laya.WebGLContext.RGBA, !1]
        }, {
            url: "res/textures/3.png",
            clas: Laya.Texture2D,
            params: [!1, !1, Laya.WebGLContext.RGBA, !1]
        }, {
            url: "res/textures/4.png",
            clas: Laya.Texture2D,
            params: [!1, !1, Laya.WebGLContext.RGBA, !1]
        }, {
            url: "res/textures/5.png",
            clas: Laya.Texture2D,
            params: [!1, !1, Laya.WebGLContext.RGBA, !1]
        }, {
            url: "res/textures/6.png",
            clas: Laya.Texture2D,
            params: [!1, !1, Laya.WebGLContext.RGBA, !1]
        }, {
            url: "res/textures/7.png",
            clas: Laya.Texture2D,
            params: [!1, !1, Laya.WebGLContext.RGBA, !1]
        }, {
            url: "res/textures/8.png",
            clas: Laya.Texture2D,
            params: [!1, !1, Laya.WebGLContext.RGBA, !1]
        }, {
            url: "res/textures/logoad.png",
            clas: Laya.Texture2D,
            params: [!1, !1, Laya.WebGLContext.RGBA, !1]
        }, {
            url: "res/textures/coin.png",
            clas: Laya.Texture2D,
            params: [!1, !1, Laya.WebGLContext.RGBA, !1]
        }, {
            url: "res/textures/players/playerl1.png",
            clas: Laya.Texture2D,
            params: [!1, !1, Laya.WebGLContext.RGBA, !1]
        }, {
            url: "res/textures/players/playerl2.png",
            clas: Laya.Texture2D,
            params: [!1, !1, Laya.WebGLContext.RGBA, !1]
        }, {
            url: "res/textures/players/playerl3.png",
            clas: Laya.Texture2D,
            params: [!1, !1, Laya.WebGLContext.RGBA, !1]
        }, {
            url: "res/textures/players/playerl4.png",
            clas: Laya.Texture2D,
            params: [!1, !1, Laya.WebGLContext.RGBA, !1]
        }, {
            url: "res/textures/players/playerl5.png",
            clas: Laya.Texture2D,
            params: [!1, !1, Laya.WebGLContext.RGBA, !1]
        }, {
            url: "res/textures/players/playerl6.png",
            clas: Laya.Texture2D,
            params: [!1, !1, Laya.WebGLContext.RGBA, !1]
        }, {
            url: "res/textures/players/playerl7.png",
            clas: Laya.Texture2D,
            params: [!1, !1, Laya.WebGLContext.RGBA, !1]
        }, {
            url: "res/textures/players/playerl8.png",
            clas: Laya.Texture2D,
            params: [!1, !1, Laya.WebGLContext.RGBA, !1]
        }, {
            url: "res/textures/players/playerl9.png",
            clas: Laya.Texture2D,
            params: [!1, !1, Laya.WebGLContext.RGBA, !1]
        }, {
            url: "res/textures/players/playerl10.png",
            clas: Laya.Texture2D,
            params: [!1, !1, Laya.WebGLContext.RGBA, !1]
        }, {
            url: "res/textures/players/playerl11.png",
            clas: Laya.Texture2D,
            params: [!1, !1, Laya.WebGLContext.RGBA, !1]
        }, {
            url: "res/textures/players/playerl12.png",
            clas: Laya.Texture2D,
            params: [!1, !1, Laya.WebGLContext.RGBA, !1]
        }, {
            url: "res/textures/players/playerl13.png",
            clas: Laya.Texture2D,
            params: [!1, !1, Laya.WebGLContext.RGBA, !1]
        }, {
            url: "res/textures/players/playerl14.png",
            clas: Laya.Texture2D,
            params: [!1, !1, Laya.WebGLContext.RGBA, !1]
        }, {
            url: "res/textures/players/playerl15.png",
            clas: Laya.Texture2D,
            params: [!1, !1, Laya.WebGLContext.RGBA, !1]
        }, {
            url: "res/textures/players/playerl16.png",
            clas: Laya.Texture2D,
            params: [!1, !1, Laya.WebGLContext.RGBA, !1]
        }, {
            url: "res/textures/players/playerl17.png",
            clas: Laya.Texture2D,
            params: [!1, !1, Laya.WebGLContext.RGBA, !1]
        }, {
            url: "res/textures/players/playerr1.png",
            clas: Laya.Texture2D,
            params: [!1, !1, Laya.WebGLContext.RGBA, !1]
        }, {
            url: "res/textures/players/playerr2.png",
            clas: Laya.Texture2D,
            params: [!1, !1, Laya.WebGLContext.RGBA, !1]
        }, {
            url: "res/textures/players/playerr3.png",
            clas: Laya.Texture2D,
            params: [!1, !1, Laya.WebGLContext.RGBA, !1]
        }, {
            url: "res/textures/players/playerr4.png",
            clas: Laya.Texture2D,
            params: [!1, !1, Laya.WebGLContext.RGBA, !1]
        }, {
            url: "res/textures/players/playerr5.png",
            clas: Laya.Texture2D,
            params: [!1, !1, Laya.WebGLContext.RGBA, !1]
        }, {
            url: "res/textures/players/playerr6.png",
            clas: Laya.Texture2D,
            params: [!1, !1, Laya.WebGLContext.RGBA, !1]
        }, {
            url: "res/textures/players/playerr7.png",
            clas: Laya.Texture2D,
            params: [!1, !1, Laya.WebGLContext.RGBA, !1]
        }, {
            url: "res/textures/players/playerr8.png",
            clas: Laya.Texture2D,
            params: [!1, !1, Laya.WebGLContext.RGBA, !1]
        }, {
            url: "res/textures/players/playerr9.png",
            clas: Laya.Texture2D,
            params: [!1, !1, Laya.WebGLContext.RGBA, !1]
        }, {
            url: "res/textures/players/playerr10.png",
            clas: Laya.Texture2D,
            params: [!1, !1, Laya.WebGLContext.RGBA, !1]
        }, {
            url: "res/textures/players/playerr11.png",
            clas: Laya.Texture2D,
            params: [!1, !1, Laya.WebGLContext.RGBA, !1]
        }, {
            url: "res/textures/players/playerr12.png",
            clas: Laya.Texture2D,
            params: [!1, !1, Laya.WebGLContext.RGBA, !1]
        }, {
            url: "res/textures/players/playerr13.png",
            clas: Laya.Texture2D,
            params: [!1, !1, Laya.WebGLContext.RGBA, !1]
        }, {
            url: "res/textures/players/playerr14.png",
            clas: Laya.Texture2D,
            params: [!1, !1, Laya.WebGLContext.RGBA, !1]
        }, {
            url: "res/textures/players/playerr15.png",
            clas: Laya.Texture2D,
            params: [!1, !1, Laya.WebGLContext.RGBA, !1]
        }, {
            url: "res/textures/players/playerr16.png",
            clas: Laya.Texture2D,
            params: [!1, !1, Laya.WebGLContext.RGBA, !1]
        }, {
            url: "res/textures/players/playerr17.png",
            clas: Laya.Texture2D,
            params: [!1, !1, Laya.WebGLContext.RGBA, !1]
        }, {
            url: "res/textures/players/shadowb.png",
            clas: Laya.Texture2D,
            params: [!1, !1, Laya.WebGLContext.RGBA, !1]
        }, {
            url: "res/textures/players/shadowc.png",
            clas: Laya.Texture2D,
            params: [!1, !1, Laya.WebGLContext.RGBA, !1]
        }], this.itemsloaded = 0, this.itemstotal = 0, t.Instance) return t.Instance;
        t.Instance = this;
    }
    return t.prototype.preload = function () {
        for (t = 0; t < this.__assetArr.length; t++) {
            e = this.__assetArr[t];
            this.itemstotal++, Laya.loader.load(e.url, Laya.Handler.create(this, this.__onComplete), null, e.type ? e.type : null);
        }
        for (var t = 0; t < this.__assetArr3D.length; t++) {
            var e = this.__assetArr3D[t];
            this.itemstotal++, Laya.loader.create(e.url, Laya.Handler.create(this, this.__onComplete), null, e.clas ? e.clas : null, e.params ? e.params : null);
        }
    }, t.prototype.clearUIRes = function () {
        for (var t = 0; t < this.__assetArr.length; t++) Laya.loader.clearTextureRes(this.__assetArr[t].url);
    }, t.prototype.clearLoaidngRes = function () {
        Laya.loader.clearRes("loading/loading.png"), Laya.loader.clearRes("loading/loadingbg.png");
    }, t.prototype.__onComplete = function () {
        this.itemsloaded++, this.__onProgress(this.itemsloaded / this.itemstotal), this.itemsloaded === this.itemstotal && (console.log("1、加载全部的素材完毕"),
            MD_GameLogin.init({
                root: GameSetting.root,
                gameName: GameSetting.gameName,
                loginOverCallBack: GameManager.Instance.gameInit.bind(GameManager.Instance)
            }));
    }, t.prototype.__onProgress = function (t) {
    }, t;
}(), PathManager = function () {

    function t() {
        if (this.__boxColorCount = 7,
            this.__boxColors = [new Laya.Vector4(.737, .157, .286, 1), new Laya.Vector4(.29, .467, .471, 1), new Laya.Vector4(1, .729, .435, 1), new Laya.Vector4(0, .494, .745, 1), new Laya.Vector4(.729, .4, .537, 1), new Laya.Vector4(.859, .553, .255, 1), new Laya.Vector4(.239, .678, .761, 1)],
            this.__boxColorIndex = 0, this.__curBoxColor = new Laya.Vector4(), this.__nextBoxColor = new Laya.Vector4(),
            this.__changeBColorTimer = 0, this.__changeBColorTime = 3, this.__canChangeBColor = !1,
            this.__boxCount = 16, this.__boxPool = new Array(), this.__boxIndex = 0, this.__childrenCount = 16,
            this.__childrenPool = new Array(), this.__childIndex = 0, this.__crossCount = 12,
            this.__crossPool = new Array(), this.__crossIndex = 0, this.__coinsCount = 5, this.__coinsPool = new Array(),
            this.__coinsIndex = 0, this.__coinsOffset = new Laya.Vector3(.1, .3, .1), this.__minCoinsDis = 9,
            this.__offsetCoinDis = 6, this.__coinDisCounter = 0, this.__dropCount = 4, this.__dropTimer = 0,
            this.__dropDelay = .4, this.__dropIndex = 0, this.__hStep = .5, this.__vStep = .25,
            this.__dropHeight = 4, this.__initCount = 6, this.__spanXDir = !1, this.__lastDir = !1,
            this.__lastCount = 0, this.__crossTimes = 0, this.__nextPos = new Laya.Vector3(),
            t.Instance) return t.Instance;
        t.Instance = this;
    }
    return Object.defineProperty(t.prototype, "boxCount", {
        get: function () {
            return this.__boxCount;
        },
        enumerable: !0,
        configurable: !0
    }), Object.defineProperty(t.prototype, "boxPool", {
        get: function () {
            return this.__boxPool;
        },
        enumerable: !0,
        configurable: !0
    }), t.prototype.__initSpanBox = function () {
        for (var t = 0; t < this.__initCount; t++) {
            var e = {
                pos: new Laya.Vector3(),
                nextPos: new Laya.Vector3(),
                xDir: !1,
                hasChildren: !1,
                childrenNode: null,
                childrenPos: new Laya.Vector3(),
                nextChildrenPos: new Laya.Vector3(),
                hit: !1,
                cross: !1
            }, i = this.__boxPool[this.__boxIndex];
            // radish === 初始化盒子
            e.xDir = this.__spanXDir, 0 !== t && (this.__spanXDir ? this.__nextPos.x -= this.__hStep : this.__nextPos.z -= this.__hStep,
                this.__nextPos.y += this.__vStep, this.__spanXDir = Math.random() > .5), this.__nextPos.cloneTo(e.pos),
                this.__nextPos.cloneTo(e.nextPos), i.reset(e), this.__boxIndex++;
            console.log(' === 初始化盒子  有可能会出现都在同一排 __initSpanBox=', this.__spanXDir);
        }
    }, t.prototype.__createPrefabs = function () {

        // 也不知道为什么要创建这个材质  MeshSprite3D three没找到。。
        // 现在用three绘制的box 有锯齿
        var t = new Laya.Vector3(.227, .227, .227);
        this.__boxMat = new Laya.BlinnPhongMaterial(),
            this.__boxColorIndex = Math.floor(Math.random() * this.__boxColorCount),
            this.__boxColors[this.__boxColorIndex].cloneTo(this.__curBoxColor), this.__boxMat.albedoColor = this.__curBoxColor,
            this.__boxMat.specularColor = t;
        for (var e = new Laya.BoxMesh(1, 1, 1),
            i = new Laya.PlaneMesh(1, 1, 1, 1), n = 0;
            n < this.__boxCount; n++) {
            (m = new Laya.MeshSprite3D(e)).meshRender.material = this.__boxMat,
                m.transform.localScale = new Laya.Vector3(this.__hStep, this.__vStep, this.__hStep),
                m.active = !1, SceneManager.Instance.addToScene(m);
            var r = new NodeControl(m);
            this.__boxPool.push(r);
        }
        console.log(' === __createPrefabs ===', this.__boxPool)
        var a = new OpacityMaterial();
        a.opacityTexture = Laya.Texture2D.load("res/textures/2.png");
        for (n = 0; n < this.__crossCount; n++) {
            if ((m = new Laya.MeshSprite3D(e)).meshRender.material = this.__boxMat,
                m.transform.localScale = new Laya.Vector3(this.__hStep, this.__vStep, this.__hStep),
                m.active = !1, SceneManager.Instance.addToScene(m), this.__crossPool.push(m), n % 4 == 0) {
                var s = new Laya.MeshSprite3D(i);
                s.meshRender.material = a, s.transform.localScale = new Laya.Vector3(.7, 1, 1.3),
                    s.transform.localPosition = new Laya.Vector3(0, 1, 0), s.transform.localRotationEuler = new Laya.Vector3(55, 45, 0),
                    m.addChild(s);
            }
        }
        for (var o = [{
            url: "res/textures/1.png",
            color: new Laya.Vector4(.071, .643, .792, 1),
            scale: new Laya.Vector3(1.1, 1, 1.6),
            pos: new Laya.Vector3(.33, .56, .3)
        }, {
            url: "res/textures/3.png",
            color: new Laya.Vector4(.78, .945, .918, 1),
            scale: new Laya.Vector3(1, 1, 1.7),
            pos: new Laya.Vector3(.1, 1.01, 0)
        }, {
            url: "res/textures/4.png",
            color: new Laya.Vector4(.78, .945, .918, 1),
            scale: new Laya.Vector3(1, 1, 1.7),
            pos: new Laya.Vector3(.1, 1.01, 0)
        }, {
            url: "res/textures/5.png",
            color: new Laya.Vector4(.039, .965, .965, 1),
            scale: new Laya.Vector3(1, 1, 1.5),
            pos: new Laya.Vector3(.3, 1.59, .25)
        }, {
            url: "res/textures/6.png",
            color: new Laya.Vector4(.973, .396, .047, 1),
            scale: new Laya.Vector3(1.2, 1, 2.5),
            pos: new Laya.Vector3(.12, 1.91, .2)
        }, {
            url: "res/textures/7.png",
            color: new Laya.Vector4(.4, .902, .376, 1),
            scale: new Laya.Vector3(1.1, 1, 1.7),
            pos: new Laya.Vector3(.05, 1.21, .07)
        }, {
            url: "res/textures/8.png",
            color: new Laya.Vector4(.769, .875, .753, 1),
            scale: new Laya.Vector3(.8, 1, 1.8),
            pos: new Laya.Vector3(-.02, 1.21, -.03)
        }, {
            url: "res/textures/logoad.png",
            color: new Laya.Vector4(.596, .549, .529, 1),
            scale: new Laya.Vector3(.8, 1, 1.8),
            pos: new Laya.Vector3(-.08, 1.21, -.08)
        }], n = 0; n < 8; n++) {
            var h = o[n], l = Laya.Texture2D.load(h.url),
                u = h.scale, c = h.color, _ = h.pos, d = new OpacityMaterial();
            d.opacityTexture = l;
            var f = new Laya.BlinnPhongMaterial();
            f.albedoColor = c, f.specularColor = t;
            for (var p = 0; p < 2; p++) {
                var m = new Laya.MeshSprite3D(e);
                m.meshRender.sharedMaterial = f,
                    m.transform.localScale = new Laya.Vector3(this.__hStep, this.__vStep, this.__hStep),
                    m.active = !1, SceneManager.Instance.addToScene(m);
                var g = new Laya.MeshSprite3D(i);
                g.meshRender.sharedMaterial = d,
                    g.transform.localScale = u, g.transform.localPosition = _,
                    g.transform.localRotationEuler = new Laya.Vector3(55, 45, 0),
                    m.addChild(g), this.__childrenPool.push(m);
            }
        }
        var v = new OpacityMaterial();
        v.opacityTexture = Laya.Texture2D.load("res/textures/coin.png");
        for (n = 0; n < this.__coinsCount; n++) {
            var x = new Laya.MeshSprite3D(i);
            x.active = !1, x.meshRender.material = v, x.transform.localScale = new Laya.Vector3(.45, .45, .45),
                x.transform.localPosition = new Laya.Vector3(0, .3, 0), x.transform.localRotationEuler = new Laya.Vector3(55, 45, 0),
                SceneManager.Instance.addToScene(x), this.__coinsPool.push(x);
        }
    }, t.prototype.__boxColorChange = function (t) {
        this.__canChangeBColor && (this.__changeBColorTimer += t, this.__changeBColorTimer > this.__changeBColorTime ? (this.__changeBColorTimer = 0,
            this.__canChangeBColor = !1) : (Laya.Vector4.lerp(this.__curBoxColor, this.__nextBoxColor, t, this.__curBoxColor),
                this.__boxMat.albedoColor = this.__curBoxColor));
    }, t.prototype.__updateAllBox = function (t) {
        for (var e = 0; e < this.__boxCount; e++) {
            var i = this.__boxPool[e];
            i.active && i.update(t);
        }
    }, t.prototype.__autoDrop = function (t) {
        //  radish 自动掉落
        // this.__dropTimer += t,  这段可以不掉落
        this.__dropTimer > this.__dropDelay && (this.__boxPool[this.__dropIndex].downMove(),
            PlayerControl.Instance.playerIndex === this.__dropIndex && PlayerControl.Instance.timeoutLose(),
            this.__dropTimer = 0, this.__dropIndex = this.__dropIndex >= this.__boxCount - 1 ? 0 : this.__dropIndex + 1);
    }, t.prototype.__showCross = function () {
        var t = PlayerControl.Instance.playerIndex >= this.__boxCount - 4 ? 4 - (this.__boxCount - PlayerControl.Instance.playerIndex) : PlayerControl.Instance.playerIndex + 4;
        this.__boxPool[t].cross && this.__boxPool[t].scaleMove();
    }, t.prototype.__limitDrop = function () {
        (PlayerControl.Instance.playerIndex >= this.__dropIndex ? PlayerControl.Instance.playerIndex - this.__dropIndex : this.__boxCount - this.__dropIndex + PlayerControl.Instance.playerIndex) > this.__dropCount && (this.__boxPool[this.__dropIndex].downMove(),
            this.__dropIndex = this.__dropIndex >= this.__boxCount - 1 ? 0 : this.__dropIndex + 1);
    }, t.prototype.__levelChange = function () {
        if (PlayerControl.Instance.playerSteps % 50 == 0) {
            PlayerControl.Instance.playChange();
            var t = Math.floor(Math.random() * this.__boxColorCount);
            this.__boxColorIndex = this.__boxColorIndex === t ? this.__boxColorIndex === this.__boxColorCount - 1 ? this.__boxColorIndex - 1 : this.__boxColorIndex + 1 : t,
                this.__boxColors[this.__boxColorIndex].cloneTo(this.__nextBoxColor), this.__canChangeBColor = !0,
                this.__dropDelay = PlayerControl.Instance.playerSteps > 150 ? .18 : PlayerControl.Instance.playerSteps > 100 ? .2 : .3;
        }
    }, t.prototype.__setCoins = function (t) {
        if (this.__coinDisCounter--, !(this.__coinDisCounter > 0)) {
            this.__coinDisCounter = Math.floor(Math.random() * this.__offsetCoinDis) + this.__minCoinsDis,
                t.hasCoin = !0;
            var e = this.__coinsPool[this.__coinsIndex];
            e.active = !0;
            var i = new Laya.Vector3();
            Laya.Vector3.add(this.__nextPos, this.__coinsOffset, i), e.transform.localPosition = i,
                t.coinIndex = this.__coinsIndex, this.__coinsIndex = this.__coinsIndex >= this.__coinsCount - 1 ? 0 : this.__coinsIndex + 1;
        }
    }, t.prototype.hideCoin = function (t) {
        this.__coinsPool[t].active = !1;
    }, t.prototype.spanBox = function () {
        this.__boxIndex = this.__boxIndex >= this.__boxCount ? 0 : this.__boxIndex;
        var t = {
            pos: new Laya.Vector3(),
            nextPos: new Laya.Vector3(),
            xDir: !1,
            hasChildren: !1,
            childrenNode: null,
            childrenPos: new Laya.Vector3(),
            nextChildrenPos: new Laya.Vector3(),
            hit: !1,
            cross: !1,
            hasCoin: !1,
            coinIndex: 0
        }, e = this.__boxPool[this.__boxIndex];
        if (t.xDir = this.__spanXDir, this.__crossTimes > 0) this.__crossIndex = this.__crossIndex >= this.__crossCount ? 0 : this.__crossIndex,
            t.hasChildren = !0, t.childrenNode = this.__crossPool[this.__crossIndex], this.__nextPos.cloneTo(t.childrenPos),
            this.__spanXDir ? (t.childrenPos.x += (4 - this.__crossTimes) * this.__hStep, t.childrenPos.z -= (5 - this.__crossTimes) * this.__hStep) : (t.childrenPos.x -= (5 - this.__crossTimes) * this.__hStep,
                t.childrenPos.z += (4 - this.__crossTimes) * this.__hStep), t.childrenPos.y += this.__vStep,
            t.childrenPos.cloneTo(t.nextChildrenPos), t.childrenPos.y += this.__dropHeight,
            t.hit = !1, this.__crossTimes > 3 && (t.cross = !0, t.hit = !0), this.__spanXDir ? this.__nextPos.x -= this.__hStep : this.__nextPos.z -= this.__hStep,
            this.__nextPos.y += this.__vStep, this.__nextPos.cloneTo(t.pos), t.pos.cloneTo(t.nextPos),
            t.pos.y += this.__dropHeight, this.__crossIndex++, this.__crossTimes--; else {
            var i = Math.random() > .8;
            i && (this.__crossTimes = 4);
            var n = !i && Math.random() > .5;
            if (n) {
                this.__childIndex = this.__childIndex >= this.__childrenCount ? 0 : this.__childIndex,
                    t.hasChildren = n, t.childrenNode = this.__childrenPool[this.__childIndex], this.__nextPos.cloneTo(t.childrenPos),
                    this.__spanXDir ? t.childrenPos.z -= this.__hStep : t.childrenPos.x -= this.__hStep,
                    t.childrenPos.y += this.__vStep;
                var r = Math.random() > .5;
                if (!r) {
                    var a = Math.floor(3 * Math.random() + 1);
                    this.__spanXDir ? t.childrenPos.z -= a * this.__hStep : t.childrenPos.x -= a * this.__hStep;
                }
                t.hit = r, t.childrenPos.cloneTo(t.nextChildrenPos), t.childrenPos.y += this.__dropHeight,
                    this.__childIndex++;
            }
            this.__spanXDir ? this.__nextPos.x -= this.__hStep : this.__nextPos.z -= this.__hStep,
                this.__nextPos.y += this.__vStep, this.__nextPos.cloneTo(t.pos), t.pos.cloneTo(t.nextPos),
                t.pos.y += this.__dropHeight, this.__spanXDir = Math.random() > .5, (this.__spanXDir && this.__lastDir || !this.__spanXDir && !this.__lastDir) && (this.__lastCount++,
                    this.__lastCount > 3 && (this.__lastCount = 0, this.__spanXDir = !this.__spanXDir)),
                this.__lastDir = this.__spanXDir;
        }
        this.__setCoins(t), e.reset(t), e.upMove(), this.__boxIndex++, this.__showCross(),
            this.__limitDrop(), this.__levelChange();
    }, t.prototype.gameInit = function () {
        this.__createPrefabs(), this.__initSpanBox();
    }, t.prototype.showCross = function () {
        this.__showCross();
    }, t.prototype.gameUpdate = function (t) {
        this.__updateAllBox(t), this.__boxColorChange(t), GameManager.Instance.gameState === GameState.PLAYING && this.__autoDrop(t);
    }, t.prototype.gameReborn = function () {
        this.__dropTimer = -2;
        (this.__boxIndex >= PlayerControl.Instance.playerIndex ? this.__boxIndex - PlayerControl.Instance.playerIndex : this.__boxCount - PlayerControl.Instance.playerIndex + this.__boxIndex) < 6 && this.spanBox();
    }, t.prototype.gameReset = function () {
        this.__dropIndex = 0, this.__dropTimer = 0, this.__dropDelay = .4, this.__boxIndex = 0,
            this.__crossIndex = 0, this.__childIndex = 0, this.__coinsIndex = 0, this.__crossTimes = 0,
            this.__nextPos.toDefault(), this.__canChangeBColor = !1, this.__spanXDir = !1, this.__lastDir = this.__spanXDir,
            this.__lastCount = 0, this.__boxColorIndex = Math.floor(Math.random() * this.__boxColorCount),
            this.__boxColors[this.__boxColorIndex].cloneTo(this.__curBoxColor), this.__boxMat.albedoColor = this.__curBoxColor;
        for (t = 0; t < this.__boxCount; t++) this.__boxPool[t].init();
        for (t = 0; t < this.__childrenCount; t++) this.__childrenPool[t].active = !1;
        for (t = 0; t < this.__crossCount; t++) this.__crossPool[t].active = !1;
        for (var t = 0; t < this.__coinsCount; t++) this.__coinsPool[t].active = !1;
        this.__initSpanBox();
    }, t;
}();

!function (t) {
    t[t.IDLE = 0] = "IDLE", t[t.START = 1] = "START", t[t.PLAYING = 2] = "PLAYING",
        t[t.END = 3] = "END";
}(GameState || (GameState = {}));

var LoseState, GameManager = function () {
    function t() {
        if (this.__gameScore = 0, this.__pixelRatio = 1, t.Instance) return t.Instance;
        if (t.Instance = this, Laya.MiniAdpter.init(), Laya3D.init(0, 0, !0), Laya.stage.scaleMode = Laya.Stage.SCALE_FULL,
            Laya.stage.screenMode = Laya.Stage.SCREEN_NONE, Laya.RunDriver.getPixelRatio = function () {
                return this.pixelRatio;
            }.bind(this), OpacityMaterial.initShader(), this.__gameData = new GameData(), this.__resourceManager = new ResourceManager(),
            this.__soundManager = new SoundManager(), this.__sceneManager = new SceneManager(),
            this.__uiManager = new UIManager(), this.__cameraFollow = new CameraFollow(), this.__playerControl = new PlayerControl(),
            this.__pathManager = new PathManager(), this.__gameState = GameState.IDLE, this.__pixelRatio = 2,
            Laya.Browser.onMiniGame) {
            wx.getSystemInfoSync().benchmarkLevel < 1 ? this.__pixelRatio = 1 : this.__pixelRatio = 2;
        }
        this.changePixelRatio(this.__pixelRatio);
    }
    return Object.defineProperty(t.prototype, "gameState", {
        get: function () {
            return this.__gameState;
        },
        enumerable: !0,
        configurable: !0
    }), Object.defineProperty(t.prototype, "pixelRatio", {
        get: function () {
            return this.__pixelRatio;
        },
        set: function (t) {
            t = Math.max(Math.min(t, window.devicePixelRatio), .5), this.__pixelRatio = t, Laya.stage.event(Laya.Event.RESIZE);
        },
        enumerable: !0,
        configurable: !0
    }), t.prototype.gameInit = function () {
        this.__soundManager.gameInit(), this.__sceneManager.gameInit(), this.__pathManager.gameInit(),
            this.__cameraFollow.gameInit(), this.__playerControl.gameInit(), this.__uiManager.gameInit(),
            // radish 游戏初始化。循环的时候调用
            Laya.timer.frameLoop(1, this, this.gameUpdate), this.__resourceManager.clearLoaidngRes();
    }, t.prototype.gameUpdate = function () {
        var t = Laya.timer.delta / 1e3;
        t > .1 && (t = .1), t < 0 && (t = 0), this.__pathManager.gameUpdate(t), this.__playerControl.gameUpdate(t),
            this.__cameraFollow.gameUpdate(t);
    }, t.prototype.gameScoreChange = function (t) {
        this.__gameScore += t, this.__gameData.score = this.__gameScore, UIManager.Instance.showScoreChange(this.__gameScore);
    }, t.prototype.gameIdle = function () {
        this.__gameState = GameState.IDLE;
    }, t.prototype.gameStart = function () {
        this.__gameState = GameState.START;
    }, t.prototype.gameEnd = function () {
        this.__gameState = GameState.END, this.__uiManager.showGameEnd();
    }, t.prototype.showGroupRank = function () {
        this.__gameState = GameState.END;
    }, t.prototype.gamePlayGame = function () {
        this.__gameState = GameState.PLAYING, this.__uiManager.hideTips();
    }, t.prototype.gameReborn = function () {
        this.__gameState = GameState.START, this.__playerControl.gameReborn(), this.__pathManager.gameReborn(),
            this.__cameraFollow.gameReborn();
    }, t.prototype.gameReset = function () {
        this.__gameState = GameState.START, this.__pathManager.gameReset(), this.__cameraFollow.gameReset(),
            this.__playerControl.gameReset(), this.__reset();
    }, t.prototype.__reset = function () {
        this.__gameScore = this.__gameData.score = 0, UIManager.Instance.showScoreChange(this.__gameScore);
    }, t.prototype.preload = function () {
        this.__resourceManager.preload();
    }, t.prototype.changePixelRatio = function (t) {
        this.pixelRatio = t, UIManager.Instance.resetScale();
    }, t.isShowBannar = !0, t;
}();

!function (t) {
    t[t.NOLOSE = -1] = "NOLOSE", t[t.HIT = 0] = "HIT", t[t.DROP = 1] = "DROP", t[t.TIMEOUT = 2] = "TIMEOUT";
}(LoseState || (LoseState = {}));

var BannerAdState, PlayerControl = function () {
    function t() {
        if (this.__initPlayerPos = new Laya.Vector3(0, 0, 0), this.__curPlayerPos = new Laya.Vector3(0, 0, 0),
            this.__loseState = LoseState.NOLOSE, this.__initShadowPos = new Laya.Vector3(.02, .13, .05),
            this.__curShadowPos = new Laya.Vector3(.02, .13, .05), this.__initShadowScale = new Laya.Vector3(.3, .3, .3),
            this.__curShadowScale = new Laya.Vector3(.3, .3, .3), this.__lParticlePos = new Laya.Vector3(-.2, .6, .2),
            this.__rParticlePos = new Laya.Vector3(.5, .8, .2), this.__jumpUp = !1, this.__jpTimer = 0,
            this.__jpTime = .2, this.__hStep = .5, this.__vStep = .25, this.__nextDir = !1,
            this.__nextHit = !1, this.__nextPos = new Laya.Vector3(0, 0, 0), this.__playerIndex = 0,
            this.__playerSteps = 0, this.__canRotate = !1, this.__shadowsCount = 17, this.__shadowsTexs = [],
            this.__shadowsScale = [new Laya.Vector3(.35, .35, .35), new Laya.Vector3(.35, .35, .35), new Laya.Vector3(.35, .35, .35), new Laya.Vector3(.35, .35, .35), new Laya.Vector3(.35, .35, .35), new Laya.Vector3(.35, .35, .35), new Laya.Vector3(.3, .3, .3), new Laya.Vector3(.3, .3, .3), new Laya.Vector3(.3, .3, .3), new Laya.Vector3(.3, .3, .3), new Laya.Vector3(.3, .3, .3), new Laya.Vector3(.3, .3, .3), new Laya.Vector3(.3, .3, .3), new Laya.Vector3(.3, .3, .3), new Laya.Vector3(.3, .3, .3), new Laya.Vector3(.3, .3, .3), new Laya.Vector3(.3, .3, .3)],
            this.__shadowsPos = [new Laya.Vector3(0, .13, 0), new Laya.Vector3(0, .13, 0), new Laya.Vector3(0, .13, 0), new Laya.Vector3(0, .13, 0), new Laya.Vector3(0, .13, 0), new Laya.Vector3(0, .13, 0), new Laya.Vector3(0, .13, 0), new Laya.Vector3(0, .13, 0), new Laya.Vector3(0, .13, 0), new Laya.Vector3(0, .13, 0), new Laya.Vector3(0, .13, 0), new Laya.Vector3(0, .13, 0), new Laya.Vector3(0, .13, 0), new Laya.Vector3(0, .13, 0), new Laya.Vector3(0, .13, 0), new Laya.Vector3(0, .13, 0), new Laya.Vector3(0, .13, 0)],
            this.__playersCount = 17, this.__playersLTexs = [], this.__playersRTexs = [], this.__playersScale = [new Laya.Vector3(.44, 1, .662), new Laya.Vector3(.44, 1, .662), new Laya.Vector3(.44, 1, .662), new Laya.Vector3(.44, 1, .662), new Laya.Vector3(.44, 1, .662), new Laya.Vector3(.44, 1, .662), new Laya.Vector3(.44, 1, .662), new Laya.Vector3(.55, 1, .828), new Laya.Vector3(.55, 1, .828), new Laya.Vector3(.55, 1, .828), new Laya.Vector3(.55, 1, .828), new Laya.Vector3(.55, 1, .828), new Laya.Vector3(.55, 1, .828), new Laya.Vector3(.55, 1, .828), new Laya.Vector3(.55, 1, .828), new Laya.Vector3(.55, 1, .828), new Laya.Vector3(.55, 1, .828)],
            this.__playersPos = [new Laya.Vector3(.05, .4, .05), new Laya.Vector3(.05, .4, .05), new Laya.Vector3(.05, .4, .05), new Laya.Vector3(.05, .4, .05), new Laya.Vector3(.05, .4, .05), new Laya.Vector3(.05, .4, .05), new Laya.Vector3(-.05, .4, -.05), new Laya.Vector3(-.1, .45, -.1), new Laya.Vector3(-.1, .45, -.1), new Laya.Vector3(-.1, .45, -.1), new Laya.Vector3(-.1, .45, -.1), new Laya.Vector3(-.1, .45, -.1), new Laya.Vector3(-.1, .45, -.1), new Laya.Vector3(-.1, .45, -.1), new Laya.Vector3(-.1, .45, -.1), new Laya.Vector3(-.1, .45, -.1), new Laya.Vector3(-.1, .45, -.1)],
            t.Instance) return t.Instance;
        t.Instance = this, this.__playerNode = new Laya.Sprite3D(), this.__body = new Laya.MeshSprite3D(),
            this.__playerNode.addChild(this.__body), this.__shadow = new Laya.MeshSprite3D(),
            this.__loseState = LoseState.NOLOSE;
    }
    return Object.defineProperty(t.prototype, "PlayerNode", {
        get: function () {
            return this.__playerNode;
        },
        enumerable: !0,
        configurable: !0
    }), Object.defineProperty(t.prototype, "loseState", {
        get: function () {
            return this.__loseState;
        },
        enumerable: !0,
        configurable: !0
    }), Object.defineProperty(t.prototype, "playerIndex", {
        get: function () {
            return this.__playerIndex;
        },
        enumerable: !0,
        configurable: !0
    }), Object.defineProperty(t.prototype, "playerSteps", {
        get: function () {
            return this.__playerSteps;
        },
        enumerable: !0,
        configurable: !0
    }), t.prototype.gameUpdate = function (t) {
        switch (GameManager.Instance.gameState) {
            case GameState.PLAYING:
                this.__jumpAnim(t);
                break;

            case GameState.END:
                switch (this.__loseState) {
                    case LoseState.DROP:
                        this.__dropAnim(t);
                        break;

                    case LoseState.HIT:
                        this.__hitAnim(t);
                        break;

                    case LoseState.TIMEOUT:
                        this.__timeOutAnim(t);
                }
        }
    }, t.prototype.gameInit = function () {
        this.__addControl(), this.__loadPlayerDatas(), this.__createPlayer(), this.__nextDir = PathManager.Instance.boxPool[1].xDir,
            this.__nextHit = !1, this.__hitParticle = Laya.Utils3D._createNodeByJson(null, ResourcesConfig.hitPt, null, null),
            this.__playerNode.addChild(this.__hitParticle);
    }, t.prototype.gameReborn = function () {
        this.__loseState = LoseState.NOLOSE, this.__body.active = !0, this.__shadow.active = !0,
            this.__jumpUp || (this.__stepsChange(), this.__nextDir ? this.__nextPos.x -= this.__hStep : this.__nextPos.z -= this.__hStep,
                this.__nextPos.y += this.__vStep), PathManager.Instance.showCross(), this.__jumpAnimEnd();
    }, t.prototype.gameReset = function () {
        this.__loseState = LoseState.NOLOSE, this.__playerIndex = 0, this.__playerSteps = 0,
            this.__nextPos.toDefault(), this.__initPlayerPos.cloneTo(this.__curPlayerPos), this.__playerNode.transform.position = this.__curPlayerPos,
            this.__body.active = !0, this.__playerMat.opacityTexture = this.__playerRTex, this.__jpTimer = 0,
            this.__nextDir = PathManager.Instance.boxPool[1].xDir, this.__nextHit = !1, this.__jumpUp = !1,
            this.__initShadowScale.cloneTo(this.__curShadowScale), this.__initShadowPos.cloneTo(this.__curShadowPos),
            this.__shadow.transform.localScale = this.__curShadowScale, this.__shadow.transform.position = this.__curShadowPos,
            this.__canRotate ? this.__shadow.transform.localRotationEuler = new Laya.Vector3(0, 45, 0) : this.__shadow.transform.localRotationEuler = new Laya.Vector3(0, 0, 0),
            this.__shadow.active = !0, GameData.Instance.coins = 0;
    }, t.prototype.__addControl = function () {
        Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.__control);
    }, t.prototype.__control = function (t) {
        switch (GameManager.Instance.gameState) {
            case GameState.IDLE:
            case GameState.END:
                return;

            case GameState.START:
                GameManager.Instance.gamePlayGame();
        }
        var e = !1, i = t.touches;
        if (i ? i[0].stageX < Laya.Browser.width / 2 && (e = !0) : t.stageX < Laya.Browser.width / 2 && (e = !0),
            e ? (this.__playerMat.opacityTexture = this.__playerLTex, this.__canRotate ? this.__shadow.transform.localRotationEuler = new Laya.Vector3(0, -45, 0) : this.__shadow.transform.localRotationEuler = new Laya.Vector3(0, 0, 0)) : (this.__playerMat.opacityTexture = this.__playerRTex,
                this.__canRotate ? this.__shadow.transform.localRotationEuler = new Laya.Vector3(0, 45, 0) : this.__shadow.transform.localRotationEuler = new Laya.Vector3(0, 0, 0)),
            this.__jumpUp && this.__jumpAnimEnd(), this.__nextDir && e || !this.__nextDir && !e) this.__stepsChange(),
                this.__jumpUp = !0, this.__nextDir ? this.__nextPos.x -= this.__hStep : this.__nextPos.z -= this.__hStep,
                this.__nextPos.y += this.__vStep, PathManager.Instance.spanBox(); else if (this.__nextHit) {
                    if (e) {
                        this.__hitParticle.transform.localPosition = this.__lParticlePos;
                        (n = this.__hitParticle.getChildAt(0)).particleSystem.simulate(0, !0), n.particleSystem.play();
                    } else {
                        this.__hitParticle.transform.localPosition = this.__rParticlePos;
                        var n = this.__hitParticle.getChildAt(0);
                        n.particleSystem.simulate(0, !0), n.particleSystem.play();
                    }
                    this.__hitLose();
                } else this.__dropLose();
    }, t.prototype.__stepsChange = function () {
        this.__playerSteps++, GameManager.Instance.gameScoreChange(1);
    }, t.prototype.__jumpAnim = function (t) {
        if (this.__jumpUp) if (this.__jpTimer += t, this.__jpTimer > this.__jpTime) this.__jumpAnimEnd(); else {
            this.__nextDir ? this.__curPlayerPos.x -= this.__hStep / this.__jpTime * t : this.__curPlayerPos.z -= this.__hStep / this.__jpTime * t;
            var e = .2 * (this.__jpTimer - .5 * this.__jpTime) / this.__jpTime * 2;
            this.__jpTimer > this.__jpTime / 2 ? (this.__curPlayerPos.y -= .4 / this.__jpTime * t,
                Laya.Vector3.add(this.__nextPos, this.__initShadowPos, this.__curShadowPos), Laya.Vector3.scale(Laya.Vector3.ONE, .15 + e, this.__curShadowScale)) : (this.__curPlayerPos.y += (.4 + 2 * this.__vStep) / this.__jpTime * t,
                    Laya.Vector3.add(this.__nextPos, this.__initShadowPos, this.__curShadowPos), this.__curShadowPos.y -= this.__vStep,
                    this.__nextDir ? this.__curShadowPos.x += this.__hStep : this.__curShadowPos.z += this.__hStep,
                    Laya.Vector3.scale(Laya.Vector3.ONE, .15 - e, this.__curShadowScale)), this.__playerNode.transform.position = this.__curPlayerPos,
                this.__shadow.transform.position = this.__curShadowPos, this.__shadow.transform.localScale = this.__curShadowScale;
        }
    }, t.prototype.__jumpAnimEnd = function () {
        this.__nextPos.cloneTo(this.__curPlayerPos), this.__playerNode.transform.position = this.__curPlayerPos,
            this.__jpTimer = 0, this.__jumpUp = !1, this.__playerIndex = this.__playerSteps % PathManager.Instance.boxCount;
        var t = PathManager.Instance.boxPool[this.__playerIndex];
        t.hasCoin && (GameData.Instance.coins += 3, PathManager.Instance.hideCoin(t.coinIndex),
            SoundManager.Instance.playSound(SoundName.EAT)), Laya.Vector3.add(this.__initShadowPos, this.__nextPos, this.__curShadowPos),
            this.__shadow.transform.position = this.__curShadowPos, this.__initShadowScale.cloneTo(this.__curShadowScale),
            this.__shadow.transform.localScale = this.__initShadowScale;
        var e = this.__playerIndex < PathManager.Instance.boxCount - 1 ? this.playerIndex + 1 : 0, i = PathManager.Instance.boxPool[e];
        this.__nextDir = i.xDir, this.__nextHit = i.hit;
    }, t.prototype.__hitAnim = function (t) {
        this.__jpTimer += t;
        this.__jpTimer, this.__jpTime, this.__jpTime;
        this.__jpTimer < this.__jpTime / 2 ? (this.__nextDir ? this.__curPlayerPos.z -= this.__hStep / this.__jpTime * t : this.__curPlayerPos.x -= this.__hStep / this.__jpTime * t,
            this.__curPlayerPos.y += (2 * this.__vStep + .2) / this.__jpTime * t, this.__playerNode.transform.position = this.__curPlayerPos) : this.__body.active && (this.__shadow.active = !1,
                this.__body.active = !1);
    }, t.prototype.__dropAnim = function (t) {
        this.__jpTimer += t, this.__jpTimer > this.__jpTime ? this.__curPlayerPos.y -= 8 * t : (this.__nextDir ? this.__curPlayerPos.z -= this.__hStep / this.__jpTime * t : this.__curPlayerPos.x -= this.__hStep / this.__jpTime * t,
            this.__jpTimer > this.__jpTime / 2 ? this.__curPlayerPos.y -= .4 / this.__jpTime * t : this.__curPlayerPos.y += (.4 + 2 * this.__vStep) / this.__jpTime * t),
            this.__playerNode.transform.position = this.__curPlayerPos;
    }, t.prototype.__timeOutAnim = function (t) {
        this.__jpTimer += t, this.__jpTimer > this.__jpTime / 2 && (this.__curPlayerPos.y -= 8 * t),
            this.__playerNode.transform.position = this.__curPlayerPos;
    }, t.prototype.__createPlayer = function () {
        // radish 创建玩家
        var t = new Laya.PlaneMesh(1, 1, 1, 1);
        this.__body.meshFilter.sharedMesh = t, this.__shadow.meshFilter.sharedMesh = t,
            this.__playerMat = new OpacityMaterial(), this.__body.meshRender.material = this.__playerMat,
            this.__body.transform.localRotationEuler = new Laya.Vector3(55, 45, 0);
        var e = new OpacityMaterial();
        e.opacity = .3, this.__shadow.meshRender.sharedMaterial = e,
            SceneManager.Instance.addToScene(this.__playerNode),
            SceneManager.Instance.addToScene(this.__shadow), this.choosePlayer(0);
    }, t.prototype.__loadPlayerDatas = function () {
        for (var t = Laya.Texture2D.load("res/textures/players/shadowc.png"), e = Laya.Texture2D.load("res/textures/players/shadowb.png"), i = ["b", "b", "b", "b", "b", "b", "c", "c", "c", "c", "c", "c", "c", "c", "c", "c", "c", "c"], n = 0; n < this.__shadowsCount; n++) "b" === i[n] ? this.__shadowsTexs.push(e) : this.__shadowsTexs.push(t);
        for (n = 0; n < this.__playersCount; n++) {
            var r = Laya.Texture2D.load("res/textures/players/playerl" + (n + 1).toString() + ".png");
            this.__playersLTexs.push(r);
            var a = Laya.Texture2D.load("res/textures/players/playerr" + (n + 1).toString() + ".png");
            this.__playersRTexs.push(a);
        }
    }, t.prototype.playChange = function () {
        SoundManager.Instance.playSound(SoundName.CHANGE);
    }, t.prototype.__hitLose = function () {
        wx.vibrateLong && GameSetting.vibrOn && wx.vibrateLong({}), this.__loseState = LoseState.HIT,
            SoundManager.Instance.playSound(SoundName.HIT), GameManager.Instance.gameEnd();
    }, t.prototype.__dropLose = function () {
        this.__shadow.active = !1, this.__loseState = LoseState.DROP, SoundManager.Instance.playSound(SoundName.LOSE),
            GameManager.Instance.gameEnd();
    }, t.prototype.timeoutLose = function () {
        this.__shadow.active = !1, this.__loseState = LoseState.TIMEOUT, SoundManager.Instance.playSound(SoundName.LOSE),
            GameManager.Instance.gameEnd();
    }, t.prototype.choosePlayer = function (t) {
        this.__canRotate = t >= 6;
        this.__shadow.meshRender.sharedMaterial.opacityTexture = this.__shadowsTexs[t];
        var e = this.__shadowsScale[t], i = this.__shadowsPos[t];
        e.cloneTo(this.__initShadowScale), i.cloneTo(this.__initShadowPos), this.__initShadowScale.cloneTo(this.__curShadowScale),
            this.__initShadowPos.cloneTo(this.__curShadowPos),
            this.__shadow.transform.localScale = this.__curShadowScale,
            this.__shadow.transform.position = this.__curShadowPos, this.__canRotate ? this.__shadow.transform.localRotationEuler = new Laya.Vector3(0, 45, 0) : this.__shadow.transform.localRotationEuler = new Laya.Vector3(0, 0, 0),
            this.__playerLTex = this.__playersLTexs[t], this.__playerRTex = this.__playersRTexs[t],
            this.__playerMat.opacityTexture = this.__playerRTex, this.__body.transform.localPosition = this.__playersPos[t],
            this.__body.transform.localScale = this.__playersScale[t];
    }, t;
}(), NodeControl = function () {
    function t(t) {
        this.__active = !1, this.__xDir = !1, this.__hit = !1, this.__cross = !1, this.__hasCoin = !1,
            this.__coinIndex = -1, this.__obj = null, this.__curPos = new Laya.Vector3(), this.__nextPos = new Laya.Vector3(),
            this.__hasChildren = !1, this.__childrenNode = null, this.__curChildrenPos = new Laya.Vector3(),
            this.__nextChildrenPos = new Laya.Vector3(), this.__canUp = !1, this.__upTimer = 0,
            this.__upTime = .2, this.__upSpeed = 20, this.__canDown = !1, this.__downTimer = 0,
            this.__downTime = .5, this.__downSpeed = 8, this.__crossNode = null, this.__curCrossScale = new Laya.Vector3(),
            this.__canScale = !1, this.__scaleTimer = 0, this.__scaleTime = .2, this.__maxScale = 1,
            this.__curScale = .5, this.__crossScale = new Laya.Vector3(.7, 1, 1.3), this.__obj = t;
    }
    return Object.defineProperty(t.prototype, "active", {
        get: function () {
            return this.__active;
        },
        enumerable: !0,
        configurable: !0
    }), Object.defineProperty(t.prototype, "xDir", {
        get: function () {
            return this.__xDir;
        },
        enumerable: !0,
        configurable: !0
    }), Object.defineProperty(t.prototype, "hit", {
        get: function () {
            return this.__hit;
        },
        enumerable: !0,
        configurable: !0
    }), Object.defineProperty(t.prototype, "cross", {
        get: function () {
            return this.__cross;
        },
        enumerable: !0,
        configurable: !0
    }), Object.defineProperty(t.prototype, "hasCoin", {
        get: function () {
            return this.__hasCoin;
        },
        enumerable: !0,
        configurable: !0
    }), Object.defineProperty(t.prototype, "coinIndex", {
        get: function () {
            return this.__coinIndex;
        },
        enumerable: !0,
        configurable: !0
    }), t.prototype.update = function (t) {
        this.__active && (this.__upAnim(t), this.__downAnim(t), this.__scaleAnim(t));
    }, t.prototype.upMove = function () {
        this.__canUp = !0, this.__upTimer = 0;
    }, t.prototype.downMove = function () {
        console.log(' === box down ')
        this.__canDown = !0, this.__downTimer = 0;
    }, t.prototype.scaleMove = function () {
        this.__canScale = !0, this.__scaleTimer = 0, this.__crossNode.active = !0;
    }, t.prototype.__upAnim = function (t) {
        this.__canUp && (this.__upTimer += t, this.__upTimer > this.__upTime ? (this.__canUp = !1,
            this.__nextPos.cloneTo(this.__curPos), this.__obj.transform.position = this.__curPos,
            this.__hasChildren && (this.__nextChildrenPos.cloneTo(this.__curChildrenPos), this.__childrenNode.transform.position = this.__curChildrenPos)) : (this.__curPos.y -= this.__upSpeed * t,
                this.__obj.transform.position = this.__curPos, this.__hasChildren && (this.__curChildrenPos.y -= this.__upSpeed * t,
                    this.__childrenNode.transform.position = this.__curChildrenPos)));
    }, t.prototype.__downAnim = function (t) {
        this.__canDown && (this.__downTimer += t, this.__downTimer > this.__downTime ? (this.__canDown = !1,
            this.__active = !1, this.__obj.active = this.__active, this.__hasChildren && (this.__childrenNode.active = !1)) : (this.__curPos.y -= this.__downSpeed * t,
                this.__obj.transform.position = this.__curPos, this.__hasChildren && (this.__curChildrenPos.y -= this.__downSpeed * t,
                    this.__childrenNode.transform.position = this.__curChildrenPos)));
    }, t.prototype.__scaleAnim = function (t) {
        if (this.__canScale) if (this.__scaleTimer += t, this.__scaleTimer > this.__scaleTime) this.__canScale = !1,
            this.__crossNode.transform.localScale = this.__crossScale; else {
            var e = this.__scaleTimer / this.__scaleTime;
            this.__curScale = .5 * (1 - e) + this.__maxScale * e, Laya.Vector3.scale(this.__crossScale, this.__curScale, this.__curCrossScale),
                this.__crossNode.transform.localScale = this.__curCrossScale;
        }
    }, t.prototype.init = function () {
        this.__active = !1, this.__obj.active = this.__active, this.__canUp = !1, this.__canDown = !1,
            this.__canScale = !1, this.__hasChildren = !1, this.__childrenNode = null, this.__hit = !1,
            this.__cross = !1, this.__crossNode = null, this.__hasCoin = !1;
    }, t.prototype.reset = function (t) {
        if (this.__active = !0, this.__obj.active = this.__active, t.pos.cloneTo(this.__curPos),
            this.__obj.transform.position = this.__curPos, t.nextPos.cloneTo(this.__nextPos),
            this.__xDir = t.xDir, this.__hasCoin = void 0 !== t.hasCoin && t.hasCoin, this.__hasCoin && (this.__coinIndex = t.coinIndex),
            this.__hasChildren = void 0 !== t.hasChildren && t.hasChildren, this.__canUp = !1,
            this.__canDown = !1, this.__canScale = !1, !this.__hasChildren) return this.__childrenNode = null,
                this.__cross = !1, this.__crossNode = null, void (this.__hit = !1);
        this.__childrenNode = t.childrenNode, t.childrenPos.cloneTo(this.__curChildrenPos),
            this.__childrenNode.transform.position = this.__curChildrenPos, this.__childrenNode.active = !0,
            this.__hit = t.hit, t.nextChildrenPos.cloneTo(this.__nextChildrenPos), this.__cross = void 0 !== t.cross && t.cross,
            this.__cross ? (this.__curScale = .5, this.__crossNode = this.__childrenNode.getChildAt(0),
                this.__crossNode.active = !1, Laya.Vector3.scale(this.__crossScale, this.__curScale, this.__curCrossScale),
                this.__crossNode.transform.localScale = this.__curCrossScale) : this.__crossNode = null;
    }, t;
}(), CameraFollow = function () {
    function t() {
        if (this.__initPos = new Laya.Vector3(2, 2.3, 2), this.__offsetPos = new Laya.Vector3(2, 3.5, 2),
            this.__initRot = new Laya.Vector3(-35, 45, 0), this.__targetPos = new Laya.Vector3(),
            this.__curPos = new Laya.Vector3(2, 2.3, 2), this.__moveSpeed = 2, this.__lightPos = new Laya.Vector3(0, 1.5, -3),
            this.__particlePos = new Laya.Vector3(0, 1, -10), this.__shakeTimer = 0, this.__lrMove = 12,
            this.__udMove = 12, this.__bgColors = [new Laya.Vector4(.259, .243, .251, 1), new Laya.Vector4(.737, .157, .286, 1), new Laya.Vector4(.29, .467, .47, 1), new Laya.Vector4(1, .729, .435, 1), new Laya.Vector4(0, .494, .745, 1), new Laya.Vector4(.361, .318, .365, 1), new Laya.Vector4(.106, .231, .306, 1), new Laya.Vector4(.729, .4, .537, 1), new Laya.Vector4(.169, .11, .251, 1), new Laya.Vector4(.859, .553, .255, 1), new Laya.Vector4(.239, .678, .761, 1)],
            this.__bgCount = 11, this.__curBgColor = new Laya.Vector4(0, 0, 0, 1), this.__nextBgColor = new Laya.Vector4(0, 0, 0, 1),
            this.__bgTimer = 0, this.__bgTime = 15, this.__bgChangeSpeed = .2, this.__bgIndex = 0,
            t.Instance) return t.Instance;
        t.Instance = this, this.__camera = new Laya.Camera(0, .1, 100), this.__camera.transform.position = this.__initPos,
            this.__camera.transform.localRotationEuler = this.__initRot, this.__camera.orthographic = !0,
            this.__camera.orthographicVerticalSize = 6, this.__camera.clearColor = new Laya.Vector4(.3, .3, .3, 1),
            this.__pLight = new Laya.PointLight(), this.__pLight.intensity = 1, this.__pLight.color = new Laya.Vector3(1, 1, 1),
            this.__pLight.range = 4, this.__pLight.transform.localPosition = this.__lightPos,
            this.__camera.addChild(this.__pLight);
    }
    return t.prototype.__updateBgColor = function (t) {
        if (this.__bgTimer += t, this.__bgTimer > this.__bgTime) {
            this.__bgTimer = 0;
            var e = Math.floor(Math.random() * this.__bgCount);
            this.__bgIndex = this.__bgIndex === e ? this.__bgIndex === this.__bgCount - 1 ? this.__bgIndex - 1 : this.__bgIndex + 1 : e,
                this.__bgColors[this.__bgIndex].cloneTo(this.__nextBgColor);
        } else this.__bgTimer > this.__bgTime / 3 && this.__bgTimer < 2 * this.__bgTime / 3 && (Laya.Vector4.lerp(this.__curBgColor, this.__nextBgColor, this.__bgChangeSpeed * t, this.__curBgColor),
            this.__camera.clearColor = this.__curBgColor);
    }, t.prototype.__updatePos = function (t) {
        GameManager.Instance.gameState !== GameState.START && GameManager.Instance.gameState !== GameState.PLAYING || (Laya.Vector3.add(PlayerControl.Instance.PlayerNode.transform.position, this.__offsetPos, this.__targetPos),
            Laya.Vector3.lerp(this.__curPos, this.__targetPos, this.__moveSpeed * t, this.__curPos),
            this.__camera.transform.position = this.__curPos), GameManager.Instance.gameState === GameState.END && PlayerControl.Instance.loseState === LoseState.HIT && (this.__shakeTimer += t,
                this.__shakeTimer > .1 && this.__shakeTimer < .5 && (this.__lrMove = -this.__lrMove,
                    this.__udMove = -this.__udMove, this.__lrMove > 0 && (this.__lrMove -= 48 * t),
                    this.__udMove > 0 && (this.__udMove -= 48 * t), this.__curPos.x += this.__lrMove * t,
                    this.__curPos.z += this.__udMove * t));
    }, t.prototype.gameUpdate = function (t) {
        this.__updateBgColor(t), this.__updatePos(t);
    }, t.prototype.gameInit = function () {
        SceneManager.Instance.addToScene(this.__camera),
            this.__bgIndex = Math.floor(Math.random() * this.__bgCount),
            this.__bgColors[this.__bgIndex].cloneTo(this.__curBgColor),
            this.__bgTimer = this.__bgTime + 1,
            this.__camera.clearColor = this.__curBgColor,
            this.__bgParticle = Laya.Utils3D._createNodeByJson(null, ResourcesConfig.bgPt, null, null),
            this.__camera.addChild(this.__bgParticle),
            this.__bgParticle.transform.localPosition = this.__particlePos,
            this.__bgParticle.transform.localRotationEuler = new Laya.Vector3(0, 0, 0);
    }, t.prototype.gameReset = function () {
        this.__initPos.cloneTo(this.__curPos), this.__camera.transform.position = this.__initPos,
            this.__shakeTimer = 0, this.__lrMove = 12, this.__udMove = 12;
    }, t.prototype.gameReborn = function () {
        this.__shakeTimer = 0, this.__lrMove = 12, this.__udMove = 12;
    }, t;
}(), GameSetting = function () {
    function t() { }
    return t.root = "https://game.elloworld.cn", t.gameName = "jump3/background/index",
        t.vibrOn = !0, t.appid = "wx216d023248cdbbb0", t.version = "1.2.0", t.reviveRewardAd = "adunit-99c65f0d7945e9d6",
        t.getPropRewardAd = "adunit-dbb2741c61a369da", t.getThreeCoinsRewardAd = "adunit-8997bac8e1b6ee19",
        t.revivePageBannerAd = "adunit-2c0b278abfc172d4", t.endPageBannerAd = "adunit-e256b13b702c6820",
        t.dailyPageBannerAd = "adunit-6d3bf5e3c5a72b54", t.choosePageBannerAd = "adunit-db56eb43d199836b",
        t.bannerAdState = 0, t.rewardAdState = 0, t;
}();

!function (t) {
    t[t.NONE = 0] = "NONE", t[t.REVIVE = 1] = "REVIVE", t[t.END = 2] = "END", t[t.DAILY = 3] = "DAILY",
        t[t.CHOOSE = 4] = "CHOOSE";
}(BannerAdState || (BannerAdState = {}));

var RewardAdState;

!function (t) {
    t[t.NONE = 0] = "NONE", t[t.REVIVE = 1] = "REVIVE", t[t.GETPROP = 2] = "GETPROP",
        t[t.GETTHREE = 3] = "GETTHREE";
}(RewardAdState || (RewardAdState = {}));

var ui, GameData = function () {
    function t() {
        if (this.coins = 0, this.score = 0, this.bestScore = 0, t.Instance) return t.Instance;
        if (t.Instance = this, Laya.Browser.onMiniGame) {
            var e = wx.getStorageSync("bestScore");
            e || (e = 0), this.bestScore = parseInt(e);
        }
    }
    return t.prototype.initAllGameData = function () {
        this.bestScore = MD_UserData.getUserData().betterScore, UIManager.Instance.initData();
    }, t.prototype.calcBest = function () {
        var t = this.bestScore;
        return this.bestScore = t < this.score ? this.score : t, MD_UserData.getUserData().betterScore = this.bestScore,
            t < this.score;
    }, t;
}(), __extends = this && this.__extends || function () {
    var t = function (e, i) {
        return (t = Object.setPrototypeOf || {
            __proto__: []
        } instanceof Array && function (t, e) {
            t.__proto__ = e;
        } || function (t, e) {
            for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
        })(e, i);
    };
    return function (e, i) {
        function n() {
            this.constructor = e;
        }
        t(e, i), e.prototype = null === i ? Object.create(i) : (n.prototype = i.prototype,
            new n());
    };
}(), OpacityMaterial = function (t) {
    function e() {
        var i = t.call(this) || this;
        return i.setShaderName("Opacity"), i._setColor(e.MAINCOLOR, new Laya.Vector3(1, 1, 1)),
            i._setNumber(e.ALPHATESTVALUE, .5), i._setNumber(e.OPACITY, 1), i.renderQueue = Laya.RenderQueue.TRANSPARENT,
            i.depthWrite = !1, i.cull = e.CULL_BACK, i.blend = e.BLEND_ENABLE_ALL, i.srcBlend = e.BLENDPARAM_SRC_ALPHA,
            i.dstBlend = e.BLENDPARAM_ONE_MINUS_SRC_ALPHA, i.alphaTest = !1, i.depthTest = e.DEPTHTEST_LESS,
            i;
    }
    return __extends(e, t), Object.defineProperty(e.prototype, "opacity", {
        get: function () {
            return this._getNumber(e.OPACITY);
        },
        set: function (t) {
            t = Math.max(0, Math.min(1, t)), this._setNumber(e.OPACITY, t);
        },
        enumerable: !0,
        configurable: !0
    }), Object.defineProperty(e.prototype, "opacityTexture", {
        get: function () {
            return this._getTexture(e.OPACITYTEXTURE);
        },
        set: function (t) {
            t ? this._addShaderDefine(e.SHADERDEFINE_OPACITYMAP) : this._removeShaderDefine(e.SHADERDEFINE_OPACITYMAP),
                this._setTexture(e.OPACITYTEXTURE, t);
        },
        enumerable: !0,
        configurable: !0
    }), Object.defineProperty(e.prototype, "mainColor", {
        get: function () {
            return this._getColor(e.MAINCOLOR);
        },
        set: function (t) {
            this._setColor(e.MAINCOLOR, t);
        },
        enumerable: !0,
        configurable: !0
    }), e.__init__ = function () {
        e.SHADERDEFINE_OPACITYMAP = e.shaderDefines.registerDefine("OPACITYMAP");
    }, e.initShader = function () {
        var t = Laya.Shader3D.nameKey.add("Opacity"), i = {
            a_Position: Laya.VertexElementUsage.POSITION0,
            a_Texcoord: Laya.VertexElementUsage.TEXTURECOORDINATE0
        }, n = {
            u_MvpMatrix: [Laya.Sprite3D.MVPMATRIX, Laya.Shader3D.PERIOD_SPRITE],
            u_OpacityTexture: [e.OPACITYTEXTURE, Laya.Shader3D.PERIOD_MATERIAL],
            u_MainColor: [e.MAINCOLOR, Laya.Shader3D.PERIOD_MATERIAL],
            u_Opacity: [e.OPACITY, Laya.Shader3D.PERIOD_MATERIAL]
        }, r = Laya.ShaderCompile3D.add(t, "attribute vec4 a_Position;\nuniform mat4 u_MvpMatrix;\n#ifdef OPACITYMAP\nattribute vec2 a_Texcoord;\nvarying vec2 v_Texcoord;\n#endif\nvoid main(){\n#ifdef OPACITYMAP\nv_Texcoord = a_Texcoord;\n#endif\ngl_Position = u_MvpMatrix * a_Position;\n}", "#ifdef FSHIGHPRECISION\nprecision highp float;\n#else\nprecision mediump float;\n#endif\nuniform vec3 u_MainColor;\nuniform float u_Opacity;\n#ifdef OPACITYMAP\nuniform sampler2D u_OpacityTexture;\nvarying vec2 v_Texcoord;\n#endif\nvoid main(){\nfloat alpha = u_Opacity;\nvec3 mainColor = u_MainColor;\n#ifdef OPACITYMAP\nvec4 texColor = texture2D(u_OpacityTexture,v_Texcoord);\nalpha = alpha * texColor.a;\nmainColor.rgb = mainColor.rgb * texColor.rgb;\n#endif\ngl_FragColor=vec4(mainColor,alpha);}\n", i, n);
        e.SHADERDEFINE_OPACITYMAP = r.registerMaterialDefine("OPACITYMAP");
    }, e.OPACITYTEXTURE = 1, e.MAINCOLOR = 2, e.OPACITY = 3, e;
}(Laya.BaseMaterial), __extends = this && this.__extends || function () {
    var t = function (e, i) {
        return (t = Object.setPrototypeOf || {
            __proto__: []
        } instanceof Array && function (t, e) {
            t.__proto__ = e;
        } || function (t, e) {
            for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
        })(e, i);
    };
    return function (e, i) {
        function n() {
            this.constructor = e;
        }
        t(e, i), e.prototype = null === i ? Object.create(i) : (n.prototype = i.prototype,
            new n());
    };
}(), View = laya.ui.View, Dialog = laya.ui.Dialog;

!function (t) {
    var e = function (e) {
        function i() {
            return e.call(this) || this;
        }
        return __extends(i, e), i.prototype.createChildren = function () {
            View.regComponent("Text", laya.display.Text), e.prototype.createChildren.call(this),
                this.createView(t.CharactersUI.uiView);
        }, i.uiView = {
            type: "View",
            props: {
                width: 1080,
                height: 1920
            },
            child: [{
                type: "Image",
                props: {
                    y: -500,
                    width: 1080,
                    skin: "characterSystem/c_bg.png",
                    height: 3e3
                }
            }, {
                type: "Image",
                props: {
                    width: 512,
                    top: 700,
                    skin: "characterSystem/c_cloud1.png",
                    left: 500,
                    height: 87
                }
            }, {
                type: "Image",
                props: {
                    width: 463,
                    skin: "characterSystem/c_cloud2.png",
                    left: 0,
                    height: 174,
                    bottom: 700
                }
            }, {
                type: "Image",
                props: {
                    width: 452,
                    top: 100,
                    skin: "characterSystem/c_cloud3.png",
                    right: 0,
                    height: 174
                }
            }, {
                type: "Image",
                props: {
                    width: 27,
                    top: 684,
                    skin: "characterSystem/c_tri.png",
                    left: 526.5,
                    height: 18
                }
            }, {
                type: "Image",
                props: {
                    y: 1511,
                    x: 494,
                    width: 93,
                    var: "backBtn",
                    skin: "characterSystem/c_back.png",
                    left: 493.5,
                    height: 107,
                    bottom: 302
                }
            }, {
                type: "Button",
                props: {
                    y: 1250,
                    x: 387,
                    width: 306,
                    var: "useBtn",
                    stateNum: 1,
                    skin: "characterSystem/c_play.png",
                    left: 387,
                    labelSize: 100,
                    labelColors: "#fff",
                    labelAlign: "center",
                    height: 170,
                    bottom: 500
                }
            }, {
                type: "Image",
                props: {
                    y: 100,
                    x: 340,
                    width: 400,
                    top: 100,
                    skin: "characterSystem/c_coins.png",
                    sizeGrid: "0,50,0,120",
                    left: 340,
                    height: 116
                },
                child: [{
                    type: "Text",
                    props: {
                        y: 22,
                        x: 120,
                        var: "coinsText",
                        text: "00999",
                        fontSize: 75,
                        color: "#ffffff",
                        align: "left"
                    }
                }]
            }, {
                type: "Image",
                props: {
                    y: 1027,
                    x: 449,
                    width: 183,
                    var: "nameImg",
                    skin: "characterSystem/c_name.png",
                    sizeGrid: "0,30,0,30",
                    left: 449,
                    height: 72,
                    bottom: 821
                },
                child: [{
                    type: "Text",
                    props: {
                        y: 13,
                        x: 46.5,
                        var: "characterName",
                        text: "阿汪",
                        fontSize: 45,
                        color: "#ffffff",
                        bold: !0
                    }
                }]
            }, {
                type: "Image",
                props: {
                    y: 620,
                    x: 276,
                    width: 528,
                    var: "descripImg",
                    top: 620,
                    skin: "characterSystem/c_circle.png",
                    sizeGrid: "0,50,0,50",
                    left: 276,
                    height: 64
                },
                child: [{
                    type: "Text",
                    props: {
                        y: 13,
                        x: 62,
                        var: "characterDescrip",
                        text: "想不想跟我去山的那边看看？",
                        fontSize: 32,
                        color: "#bbbbbb"
                    }
                }]
            }, {
                type: "Button",
                props: {
                    width: 306,
                    var: "unlockBtn",
                    stateNum: 1,
                    skin: "characterSystem/c_buycoin.png",
                    left: 387,
                    height: 170,
                    bottom: 500
                },
                child: [{
                    type: "Text",
                    props: {
                        y: 40,
                        x: 110,
                        var: "buyCoinText",
                        text: "9999",
                        fontSize: 70,
                        color: "#27026b"
                    }
                }]
            }, {
                type: "Box",
                props: {
                    y: 720,
                    x: 0,
                    var: "characterImgs"
                },
                child: [{
                    type: "Image",
                    props: {
                        y: 0,
                        x: 660,
                        width: 240,
                        skin: "game/playerm0.png",
                        height: 240,
                        anchorY: 0,
                        anchorX: .5
                    },
                    child: [{
                        type: "Image",
                        props: {
                            y: 61,
                            width: 87,
                            visible: !1,
                            skin: "game/c_lock.png",
                            height: 118,
                            centerY: 0,
                            centerX: 0,
                            anchorY: 0,
                            anchorX: .5
                        }
                    }]
                }, {
                    type: "Image",
                    props: {
                        y: 0,
                        x: 660,
                        width: 240,
                        skin: "game/playerm1.png",
                        height: 240,
                        gray: !0,
                        anchorY: 0,
                        anchorX: .5,
                        alpha: .6
                    },
                    child: [{
                        type: "Image",
                        props: {
                            y: 61,
                            width: 87,
                            skin: "game/c_lock.png",
                            height: 118,
                            centerY: 0,
                            centerX: 0,
                            anchorY: 0,
                            anchorX: .5
                        }
                    }]
                }, {
                    type: "Image",
                    props: {
                        y: 0,
                        x: 670,
                        width: 240,
                        skin: "game/playerm2.png",
                        height: 240,
                        gray: !0,
                        anchorY: 0,
                        anchorX: .5,
                        alpha: .6
                    },
                    child: [{
                        type: "Image",
                        props: {
                            y: 61,
                            width: 87,
                            skin: "game/c_lock.png",
                            height: 118,
                            centerY: 0,
                            centerX: 0,
                            anchorY: 0,
                            anchorX: .5
                        }
                    }]
                }, {
                    type: "Image",
                    props: {
                        y: 0,
                        x: 680,
                        width: 240,
                        skin: "game/playerm3.png",
                        height: 240,
                        gray: !0,
                        anchorY: 0,
                        anchorX: .5,
                        alpha: .6
                    },
                    child: [{
                        type: "Image",
                        props: {
                            y: 61,
                            width: 87,
                            skin: "game/c_lock.png",
                            height: 118,
                            centerY: 0,
                            centerX: 0,
                            anchorY: 0,
                            anchorX: .5
                        }
                    }]
                }, {
                    type: "Image",
                    props: {
                        y: 0,
                        x: 690,
                        width: 240,
                        skin: "game/playerm4.png",
                        height: 240,
                        gray: !0,
                        anchorY: 0,
                        anchorX: .5,
                        alpha: .6
                    },
                    child: [{
                        type: "Image",
                        props: {
                            y: 61,
                            width: 87,
                            skin: "game/c_lock.png",
                            height: 118,
                            centerY: 0,
                            centerX: 0,
                            anchorY: 0,
                            anchorX: .5
                        }
                    }]
                }, {
                    type: "Image",
                    props: {
                        y: 0,
                        x: 700,
                        width: 240,
                        skin: "game/playerm5.png",
                        height: 240,
                        gray: !0,
                        anchorY: 0,
                        anchorX: .5,
                        alpha: .6
                    },
                    child: [{
                        type: "Image",
                        props: {
                            y: 61,
                            width: 87,
                            skin: "game/c_lock.png",
                            height: 118,
                            centerY: 0,
                            centerX: 0,
                            anchorY: 0,
                            anchorX: .5
                        }
                    }]
                }, {
                    type: "Image",
                    props: {
                        y: 0,
                        x: 710,
                        width: 240,
                        skin: "game/playerm6.png",
                        height: 240,
                        gray: !0,
                        anchorY: 0,
                        anchorX: .5,
                        alpha: .6
                    },
                    child: [{
                        type: "Image",
                        props: {
                            y: 61,
                            width: 87,
                            skin: "game/c_lock.png",
                            height: 118,
                            centerY: 0,
                            centerX: 0,
                            anchorY: 0,
                            anchorX: .5
                        }
                    }]
                }, {
                    type: "Image",
                    props: {
                        y: 0,
                        x: 720,
                        width: 240,
                        skin: "game/playerm7.png",
                        height: 240,
                        gray: !0,
                        anchorY: 0,
                        anchorX: .5,
                        alpha: .6
                    },
                    child: [{
                        type: "Image",
                        props: {
                            y: 61,
                            width: 87,
                            skin: "game/c_lock.png",
                            height: 118,
                            centerY: 0,
                            centerX: 0,
                            anchorY: 0,
                            anchorX: .5
                        }
                    }]
                }, {
                    type: "Image",
                    props: {
                        y: 0,
                        x: 730,
                        width: 240,
                        skin: "game/playerm8.png",
                        height: 240,
                        gray: !0,
                        anchorY: 0,
                        anchorX: .5,
                        alpha: .6
                    },
                    child: [{
                        type: "Image",
                        props: {
                            y: 61,
                            width: 87,
                            skin: "game/c_lock.png",
                            height: 118,
                            centerY: 0,
                            centerX: 0,
                            anchorY: 0,
                            anchorX: .5
                        }
                    }]
                }, {
                    type: "Image",
                    props: {
                        y: 0,
                        x: 740,
                        width: 240,
                        skin: "game/playerm9.png",
                        height: 240,
                        gray: !0,
                        anchorY: 0,
                        anchorX: .5,
                        alpha: .6
                    },
                    child: [{
                        type: "Image",
                        props: {
                            y: 61,
                            width: 87,
                            skin: "game/c_lock.png",
                            height: 118,
                            centerY: 0,
                            centerX: 0,
                            anchorY: 0,
                            anchorX: .5
                        }
                    }]
                }, {
                    type: "Image",
                    props: {
                        y: 0,
                        x: 750,
                        width: 240,
                        skin: "game/playerm10.png",
                        height: 240,
                        gray: !0,
                        anchorY: 0,
                        anchorX: .5,
                        alpha: .6
                    },
                    child: [{
                        type: "Image",
                        props: {
                            y: 61,
                            width: 87,
                            skin: "game/c_lock.png",
                            height: 118,
                            centerY: 0,
                            centerX: 0,
                            anchorY: 0,
                            anchorX: .5
                        }
                    }]
                }, {
                    type: "Image",
                    props: {
                        y: 0,
                        x: 760,
                        width: 240,
                        skin: "game/playerm11.png",
                        height: 240,
                        gray: !0,
                        anchorY: 0,
                        anchorX: .5,
                        alpha: .6
                    },
                    child: [{
                        type: "Image",
                        props: {
                            y: 61,
                            width: 87,
                            skin: "game/c_lock.png",
                            height: 118,
                            centerY: 0,
                            centerX: 0,
                            anchorY: 0,
                            anchorX: .5
                        }
                    }]
                }, {
                    type: "Image",
                    props: {
                        y: 0,
                        x: 770,
                        width: 240,
                        skin: "game/playerm12.png",
                        height: 240,
                        gray: !0,
                        anchorY: 0,
                        anchorX: .5,
                        alpha: .6
                    },
                    child: [{
                        type: "Image",
                        props: {
                            y: 61,
                            width: 87,
                            skin: "game/c_lock.png",
                            height: 118,
                            centerY: 0,
                            centerX: 0,
                            anchorY: 0,
                            anchorX: .5
                        }
                    }]
                }, {
                    type: "Image",
                    props: {
                        y: 0,
                        x: 780,
                        width: 240,
                        skin: "game/playerm13.png",
                        height: 240,
                        gray: !0,
                        anchorY: 0,
                        anchorX: .5,
                        alpha: .6
                    },
                    child: [{
                        type: "Image",
                        props: {
                            y: 61,
                            width: 87,
                            skin: "game/c_lock.png",
                            height: 118,
                            centerY: 0,
                            centerX: 0,
                            anchorY: 0,
                            anchorX: .5
                        }
                    }]
                }, {
                    type: "Image",
                    props: {
                        y: 0,
                        x: 790,
                        width: 240,
                        skin: "game/playerm14.png",
                        height: 240,
                        gray: !0,
                        anchorY: 0,
                        anchorX: .5,
                        alpha: .6
                    },
                    child: [{
                        type: "Image",
                        props: {
                            y: 61,
                            width: 87,
                            skin: "game/c_lock.png",
                            height: 118,
                            centerY: 0,
                            centerX: 0,
                            anchorY: 0,
                            anchorX: .5
                        }
                    }]
                }, {
                    type: "Image",
                    props: {
                        y: 0,
                        x: 800,
                        width: 240,
                        skin: "game/playerm15.png",
                        height: 240,
                        gray: !0,
                        anchorY: 0,
                        anchorX: .5,
                        alpha: .6
                    },
                    child: [{
                        type: "Image",
                        props: {
                            y: 61,
                            width: 87,
                            skin: "game/c_lock.png",
                            height: 118,
                            centerY: 0,
                            centerX: 0,
                            anchorY: 0,
                            anchorX: .5
                        }
                    }]
                }, {
                    type: "Image",
                    props: {
                        y: 0,
                        x: 810,
                        width: 240,
                        skin: "game/playerm16.png",
                        height: 240,
                        gray: !0,
                        anchorY: 0,
                        anchorX: .5,
                        alpha: .6
                    },
                    child: [{
                        type: "Image",
                        props: {
                            y: 61,
                            width: 87,
                            skin: "game/c_lock.png",
                            height: 118,
                            centerY: 0,
                            centerX: 0,
                            anchorY: 0,
                            anchorX: .5
                        }
                    }]
                }, {
                    type: "Image",
                    props: {
                        y: 0,
                        x: 820,
                        width: 240,
                        skin: "game/playerm17.png",
                        height: 240,
                        gray: !0,
                        anchorY: 0,
                        anchorX: .5,
                        alpha: .6
                    },
                    child: [{
                        type: "Image",
                        props: {
                            y: 61,
                            width: 87,
                            skin: "game/c_lock.png",
                            height: 118,
                            centerY: 0,
                            centerX: 0,
                            anchorY: 0,
                            anchorX: .5
                        }
                    }]
                }]
            }]
        }, i;
    }(View);
    t.CharactersUI = e;
}(ui || (ui = {})), function (t) {
    var e = function (e) {
        function i() {
            return e.call(this) || this;
        }
        return __extends(i, e), i.prototype.createChildren = function () {
            View.regComponent("Text", laya.display.Text), e.prototype.createChildren.call(this),
                this.createView(t.EndPagUI.uiView);
        }, i.uiView = {
            type: "View",
            props: {
                width: 1080,
                height: 1920
            },
            child: [{
                type: "Box",
                props: {
                    y: 0,
                    x: 0,
                    width: 1080,
                    height: 1920
                },
                child: [{
                    type: "Text",
                    props: {
                        y: 193,
                        x: 0,
                        width: 1080,
                        text: "本次得分",
                        height: 50,
                        fontSize: 36,
                        color: "#ffffff",
                        alpha: .5,
                        align: "center"
                    }
                }, {
                    type: "Text",
                    props: {
                        y: 230,
                        x: 0,
                        width: 1080,
                        var: "scoreText",
                        text: "5368",
                        fontSize: 174,
                        color: "#ffffff",
                        align: "center"
                    }
                }, {
                    type: "Text",
                    props: {
                        y: 404,
                        width: 1080,
                        var: "bestScoreText",
                        text: "历史最佳 5358",
                        fontSize: 36,
                        color: "#ffffff",
                        alpha: .5,
                        align: "center"
                    }
                }]
            }, {
                type: "Box",
                props: {
                    y: -100,
                    x: 0,
                    width: 1080,
                    height: 1920
                },
                child: [{
                    type: "Image",
                    props: {
                        width: 962,
                        top: 605,
                        skin: "end/Endpagescore.png",
                        left: 59,
                        height: 689
                    }
                }, {
                    type: "Image",
                    props: {
                        width: 543,
                        var: "newRecord",
                        top: 529,
                        skin: "end/Newrecord.png",
                        left: 278,
                        height: 147
                    }
                }, {
                    type: "Label",
                    props: {
                        var: "showRankBtn",
                        text: "查看全部排行榜>",
                        right: 100,
                        fontSize: 35,
                        color: "#ffffff",
                        bottom: 684,
                        alpha: .6
                    }
                }]
            }, {
                type: "Sprite",
                props: {
                    y: 510,
                    x: 60,
                    width: 960,
                    var: "rankSprite",
                    height: 550
                }
            }, {
                type: "Button",
                props: {
                    width: 376,
                    var: "restartBtn",
                    stateNum: 1,
                    skin: "end/e_again.png",
                    left: 347,
                    height: 150,
                    bottom: 496
                }
            }, {
                type: "Image",
                props: {
                    width: 120,
                    var: "missionBtn",
                    skin: "end/e_mission.png",
                    right: 118,
                    height: 131,
                    bottom: 494
                }
            }, {
                type: "Button",
                props: {
                    width: 93,
                    var: "mainBtn",
                    stateNum: 1,
                    skin: "end/e_main.png",
                    left: 129,
                    height: 131,
                    bottom: 498
                }
            }, {
                type: "Button",
                props: {
                    width: 376,
                    var: "inviteBtn",
                    stateNum: 1,
                    skin: "end/e_challenge.png",
                    left: 353,
                    height: 150,
                    bottom: 312
                }
            }, {
                type: "Image",
                props: {
                    width: 138,
                    visible: !1,
                    var: "getPropsBtn",
                    top: 1455,
                    skin: "game/g_getProps.png",
                    left: 834,
                    height: 145
                }
            }, {
                type: "Image",
                props: {
                    y: 1245,
                    x: 460,
                    var: "againCoinUp",
                    skin: "game/g_coinup.png"
                }
            }, {
                type: "Image",
                props: {
                    y: 1431,
                    x: 460,
                    var: "inviteCoinUp",
                    skin: "game/g_coinup.png"
                }
            }, {
                type: "Image",
                props: {
                    y: 1505,
                    x: 885,
                    width: 30,
                    visible: !1,
                    var: "animPlayer",
                    skin: "game/playerm1.png",
                    height: 30
                },
                compId: 43
            }],
            animations: [{
                nodes: [],
                name: "ani1",
                id: 1,
                frameRate: 24,
                action: 0
            }, {
                nodes: [{
                    target: 43,
                    keyframes: {
                        y: [{
                            value: 700,
                            tweenMethod: "linearNone",
                            tween: !0,
                            target: 43,
                            key: "y",
                            index: 0
                        }, {
                            value: 1505,
                            tweenMethod: "linearNone",
                            tween: !0,
                            target: 43,
                            key: "y",
                            index: 48
                        }],
                        x: [{
                            value: 290,
                            tweenMethod: "linearNone",
                            tween: !0,
                            target: 43,
                            key: "x",
                            index: 0
                        }, {
                            value: 885,
                            tweenMethod: "linearNone",
                            tween: !0,
                            target: 43,
                            key: "x",
                            index: 48
                        }],
                        width: [{
                            value: 500,
                            tweenMethod: "linearNone",
                            tween: !0,
                            target: 43,
                            key: "width",
                            index: 0
                        }, {
                            value: 30,
                            tweenMethod: "linearNone",
                            tween: !0,
                            target: 43,
                            key: "width",
                            index: 48
                        }],
                        visible: [{
                            value: !0,
                            tweenMethod: "linearNone",
                            tween: !1,
                            target: 43,
                            key: "visible",
                            index: 0
                        }, {
                            value: !1,
                            tweenMethod: "linearNone",
                            tween: !1,
                            target: 43,
                            key: "visible",
                            index: 48
                        }],
                        height: [{
                            value: 500,
                            tweenMethod: "linearNone",
                            tween: !0,
                            target: 43,
                            key: "height",
                            index: 0
                        }, {
                            value: 30,
                            tweenMethod: "linearNone",
                            tween: !0,
                            target: 43,
                            key: "height",
                            index: 48
                        }]
                    }
                }],
                name: "ani2",
                id: 2,
                frameRate: 48,
                action: 0
            }]
        }, i;
    }(View);
    t.EndPagUI = e;
}(ui || (ui = {})), function (t) {
    var e = function (e) {
        function i() {
            return e.call(this) || this;
        }
        return __extends(i, e), i.prototype.createChildren = function () {
            View.regComponent("Text", laya.display.Text), e.prototype.createChildren.call(this),
                this.createView(t.GamePageUI.uiView);
        }, i.uiView = {
            type: "View",
            props: {
                y: 0,
                x: 0,
                width: 1080,
                top: 0,
                skewY: 0,
                skewX: 0,
                scaleY: 1,
                scaleX: 1,
                right: 0,
                pivotY: 0,
                pivotX: 0,
                left: 0,
                height: 1920,
                centerY: 0,
                centerX: 0,
                bottom: 0,
                anchorY: 0,
                anchorX: 0
            },
            child: [{
                type: "Box",
                props: {
                    x: -9,
                    width: 1080,
                    var: "topSettings",
                    top: 5,
                    height: 1920
                },
                child: [{
                    type: "Image",
                    props: {
                        y: 172,
                        x: 36,
                        width: 147,
                        var: "awardBtn",
                        skin: "game/g_award.png",
                        height: 231
                    },
                    child: [{
                        type: "Text",
                        props: {
                            y: 185,
                            x: 5,
                            width: 140,
                            var: "timeTxt",
                            text: "06:00:00",
                            fontSize: 30,
                            color: "#5f1b1c",
                            bold: !0,
                            align: "center"
                        }
                    }]
                }, {
                    type: "Button",
                    props: {
                        width: 145,
                        var: "musicBtn",
                        top: 38,
                        stateNum: 1,
                        skin: "game/Musicbackground.png",
                        left: 0,
                        height: 117
                    },
                    child: [{
                        type: "Image",
                        props: {
                            width: 79,
                            top: 20,
                            skin: "game/Musicopen.png",
                            left: 44,
                            height: 79
                        }
                    }, {
                        type: "Image",
                        props: {
                            width: 79,
                            var: "musicClose",
                            top: 22,
                            skin: "game/Musicclose.png",
                            left: 44,
                            height: 79
                        }
                    }]
                }, {
                    type: "Button",
                    props: {
                        width: 118,
                        var: "vibrBtn",
                        top: 38,
                        stateNum: 1,
                        skin: "game/vibron.png",
                        left: 157,
                        height: 118
                    }
                }]
            }, {
                type: "Image",
                props: {
                    width: 822,
                    top: 409,
                    skin: "game/Title.png",
                    name: "logo",
                    left: 129,
                    height: 340
                }
            }, {
                type: "Image",
                props: {
                    width: 138,
                    visible: !1,
                    var: "getPropsBtn",
                    top: 850,
                    skin: "game/g_getProps.png",
                    left: 20,
                    height: 145
                }
            }, {
                type: "Button",
                props: {
                    x: 125,
                    width: 132,
                    var: "chooseBtn",
                    top: 1270,
                    stateNum: 1,
                    skin: "game/storebox.png",
                    left: 125,
                    height: 173
                },
                child: [{
                    type: "Image",
                    props: {
                        width: 160,
                        var: "playerImg",
                        skin: "game/playerm0.png",
                        left: 0,
                        height: 160,
                        bottom: 50
                    }
                }]
            }, {
                type: "Button",
                props: {
                    x: 357,
                    width: 366,
                    var: "startBtn",
                    stateNum: 1,
                    skin: "game/Start.png",
                    left: 357,
                    height: 164,
                    bottom: 480
                }
            }, {
                type: "Image",
                props: {
                    y: 1258,
                    x: 823,
                    width: 132,
                    var: "missionBtn",
                    skin: "game/g_dailym.png",
                    height: 178
                },
                child: [{
                    type: "Image",
                    props: {
                        y: 1,
                        x: 116,
                        var: "pointBtn",
                        skin: "game/g_point.png"
                    }
                }]
            }, {
                type: "Image",
                props: {
                    x: 169,
                    width: 305,
                    var: "rankBtn",
                    skin: "game/g_rank.png",
                    left: 169,
                    height: 96,
                    bottom: 350
                }
            }, {
                type: "Image",
                props: {
                    x: 605,
                    width: 305,
                    var: "inviteBtn",
                    skin: "game/g_invite.png",
                    right: 170,
                    height: 96,
                    bottom: 350
                }
            }, {
                type: "Image",
                props: {
                    x: 415,
                    width: 250,
                    top: 1156,
                    skin: "game/coin.png",
                    sizeGrid: "0,50,0,80",
                    left: 415,
                    height: 72
                },
                child: [{
                    type: "Text",
                    props: {
                        y: 10,
                        x: 75,
                        var: "coinText",
                        text: "00000",
                        fontSize: 50,
                        color: "#ffffff"
                    }
                }]
            }, {
                type: "Image",
                props: {
                    y: 1245,
                    x: 460,
                    var: "startCoinUp",
                    skin: "game/g_coinup.png"
                }
            }, {
                type: "Image",
                props: {
                    y: 1443,
                    x: 679,
                    var: "inviteCoinUp",
                    skin: "game/g_coinup.png"
                }
            }, {
                type: "Text",
                props: {
                    y: 990,
                    x: 0,
                    width: 1080,
                    var: "bestScoreText",
                    text: "1235",
                    height: 90,
                    fontSize: 90,
                    color: "#ffffff",
                    bold: !0,
                    align: "center"
                }
            }, {
                type: "Label",
                props: {
                    top: 1080,
                    text: "历史最佳",
                    name: "historyBest",
                    left: 470,
                    fontSize: 35,
                    color: "#ffffff"
                }
            }]
        }, i;
    }(View);
    t.GamePageUI = e;
}(ui || (ui = {})), function (t) {
    var e = function (e) {
        function i() {
            return e.call(this) || this;
        }
        return __extends(i, e), i.prototype.createChildren = function () {
            View.regComponent("Text", laya.display.Text), e.prototype.createChildren.call(this),
                this.createView(t.GetPropPageUI.uiView);
        }, i.uiView = {
            type: "View",
            props: {
                y: 0,
                x: 0,
                width: 1080,
                top: 0,
                skewY: 0,
                skewX: 0,
                scaleY: 1,
                scaleX: 1,
                right: 0,
                pivotY: 0,
                pivotX: 0,
                left: 0,
                height: 1920,
                centerY: 0,
                centerX: 0,
                bottom: 0,
                anchorY: 0,
                anchorX: 0
            },
            child: [{
                type: "Image",
                props: {
                    y: -500,
                    width: 1080,
                    skin: "mission/m_bg.png",
                    height: 3e3
                }
            }, {
                type: "Image",
                props: {
                    y: 822,
                    x: 145,
                    width: 810,
                    var: "coinTips",
                    top: 812,
                    skin: "mission/m_ccoin.png",
                    left: 135,
                    height: 321
                },
                child: [{
                    type: "Image",
                    props: {
                        skin: "mission/m_coinp.png",
                        left: 68,
                        bottom: 41
                    }
                }, {
                    type: "Image",
                    props: {
                        width: 223,
                        var: "sureBtn",
                        top: 273,
                        skin: "mission/m_ok.png",
                        left: 293.5,
                        height: 110
                    }
                }, {
                    type: "Text",
                    props: {
                        y: 160,
                        x: 610,
                        var: "getCoin",
                        text: "X5000",
                        fontSize: 50,
                        color: "#ffffff"
                    }
                }, {
                    type: "Image",
                    props: {
                        y: 28,
                        x: 748,
                        var: "closeTips",
                        skin: "mission/m_closeBtn.png"
                    }
                }, {
                    type: "Image",
                    props: {
                        y: 265,
                        x: 198,
                        var: "getThree",
                        skin: "mission/m_getThree.png"
                    }
                }]
            }, {
                type: "Box",
                props: {
                    width: 999,
                    var: "getBox",
                    top: 401,
                    left: 1,
                    height: 934
                },
                child: [{
                    type: "Image",
                    props: {
                        y: 62,
                        x: 94,
                        skin: "mission/m_boxw.png"
                    }
                }, {
                    type: "Image",
                    props: {
                        y: 473,
                        x: 540,
                        width: 800,
                        skin: "mission/m_boxl2.png",
                        height: 800,
                        anchorY: .5,
                        anchorX: .5
                    },
                    compId: 38
                }, {
                    type: "Image",
                    props: {
                        y: 473,
                        x: 540,
                        width: 800,
                        skin: "mission/m_boxl1.png",
                        height: 800,
                        anchorY: .5,
                        anchorX: .5
                    },
                    compId: 39
                }, {
                    type: "Image",
                    props: {
                        y: 291,
                        x: 300,
                        skin: "mission/m_box0.png"
                    }
                }, {
                    type: "Image",
                    props: {
                        y: 840,
                        x: 362,
                        var: "openBtn",
                        skin: "mission/m_open.png"
                    }
                }, {
                    type: "Image",
                    props: {
                        y: -200,
                        x: 883,
                        var: "closeBoxBtn",
                        skin: "mission/m_close.png"
                    }
                }]
            }, {
                type: "Box",
                props: {
                    width: 1080,
                    var: "shareTips",
                    top: 324,
                    height: 1193
                },
                child: [{
                    type: "Image",
                    props: {
                        y: 490,
                        x: 540,
                        width: 936,
                        var: "shareTipsImg2",
                        skin: "mission/m_ll1_2.png",
                        height: 936,
                        anchorY: .5,
                        anchorX: .5
                    },
                    compId: 41
                }, {
                    type: "Image",
                    props: {
                        y: 486,
                        x: 540,
                        width: 936,
                        var: "shareTipsImg1",
                        skin: "mission/m_ll1_1.png",
                        height: 936,
                        anchorY: .5,
                        anchorX: .5
                    },
                    compId: 40
                }, {
                    type: "Image",
                    props: {
                        y: 0,
                        x: 279,
                        var: "shareTipsWord",
                        skin: "mission/m_lw1.png"
                    }
                }, {
                    type: "Image",
                    props: {
                        y: 1e3,
                        x: 267,
                        var: "inviteBtn",
                        skin: "mission/m_invitef.png"
                    }
                }, {
                    type: "Image",
                    props: {
                        y: 1e3,
                        x: 270,
                        var: "watchVideo",
                        skin: "mission/m_watchvideo.png"
                    }
                }, {
                    type: "Image",
                    props: {
                        y: -120,
                        x: 881,
                        var: "closeShareBtn",
                        skin: "mission/m_close.png"
                    }
                }, {
                    type: "Box",
                    props: {
                        y: 1200,
                        x: 470,
                        width: 148,
                        var: "shareBtn",
                        height: 44
                    },
                    child: [{
                        type: "Image",
                        props: {
                            y: -1,
                            x: 2,
                            skin: "mission/m_fxbox.png"
                        }
                    }, {
                        type: "Image",
                        props: {
                            y: 2,
                            x: 3,
                            var: "yesImg",
                            skin: "mission/m_yes.png"
                        }
                    }, {
                        type: "Image",
                        props: {
                            y: 4,
                            x: 61,
                            skin: "mission/m_fx.png"
                        }
                    }]
                }, {
                    type: "Image",
                    props: {
                        y: 294,
                        x: 290,
                        width: 500,
                        var: "GetPlayerImg",
                        skin: "game/playerm5.png",
                        height: 500
                    }
                }]
            }],
            animations: [{
                nodes: [{
                    target: 38,
                    keyframes: {
                        rotation: [{
                            value: 0,
                            tweenMethod: "linearNone",
                            tween: !0,
                            target: 38,
                            key: "rotation",
                            index: 0
                        }, {
                            value: 360,
                            tweenMethod: "linearNone",
                            tween: !0,
                            target: 38,
                            key: "rotation",
                            index: 72
                        }]
                    }
                }, {
                    target: 39,
                    keyframes: {
                        rotation: [{
                            value: 360,
                            tweenMethod: "linearNone",
                            tween: !0,
                            target: 39,
                            key: "rotation",
                            index: 0
                        }, {
                            value: 0,
                            tweenMethod: "linearNone",
                            tween: !0,
                            target: 39,
                            key: "rotation",
                            index: 72
                        }]
                    }
                }],
                name: "ani1",
                id: 1,
                frameRate: 24,
                action: 2
            }, {
                nodes: [{
                    target: 41,
                    keyframes: {
                        rotation: [{
                            value: 360,
                            tweenMethod: "linearNone",
                            tween: !0,
                            target: 41,
                            key: "rotation",
                            index: 0
                        }, {
                            value: 0,
                            tweenMethod: "linearNone",
                            tween: !0,
                            target: 41,
                            key: "rotation",
                            index: 72
                        }]
                    }
                }, {
                    target: 40,
                    keyframes: {
                        rotation: [{
                            value: 0,
                            tweenMethod: "linearNone",
                            tween: !0,
                            target: 40,
                            key: "rotation",
                            index: 0
                        }, {
                            value: 360,
                            tweenMethod: "linearNone",
                            tween: !0,
                            target: 40,
                            key: "rotation",
                            index: 72
                        }]
                    }
                }],
                name: "ani2",
                id: 2,
                frameRate: 24,
                action: 2
            }]
        }, i;
    }(View);
    t.GetPropPageUI = e;
}(ui || (ui = {})), function (t) {
    var e = function (e) {
        function i() {
            return e.call(this) || this;
        }
        return __extends(i, e), i.prototype.createChildren = function () {
            e.prototype.createChildren.call(this), this.createView(t.GroupRankPageUI.uiView);
        }, i.uiView = {
            type: "View",
            props: {
                width: 1080,
                height: 1920
            },
            child: [{
                type: "Box",
                props: {
                    y: 0,
                    x: 0,
                    width: 1080,
                    height: 1920
                },
                child: [{
                    type: "Image",
                    props: {
                        width: 255,
                        top: 216,
                        skin: "game/Grouprankings.png",
                        left: 412.5,
                        height: 61
                    }
                }, {
                    type: "Sprite",
                    props: {
                        y: 332,
                        x: 70,
                        width: 940,
                        var: "rankSprite",
                        height: 1200
                    }
                }, {
                    type: "Image",
                    props: {
                        width: 950,
                        top: 332,
                        skin: "game/Individualrankings.png",
                        left: 65,
                        height: 180
                    }
                }, {
                    type: "Image",
                    props: {
                        width: 950,
                        top: 548,
                        skin: "game/Friendsrankings.png",
                        left: 65,
                        height: 1059
                    }
                }, {
                    type: "Label",
                    props: {
                        var: "previousBtn",
                        text: "<上一页",
                        left: 95,
                        fontSize: 35,
                        color: "#ffffff",
                        bottom: 365,
                        alpha: .6
                    }
                }, {
                    type: "Label",
                    props: {
                        var: "nextBtn",
                        text: "下一页>",
                        right: 110,
                        fontSize: 35,
                        color: "#ffffff",
                        bottom: 365,
                        alpha: .6
                    }
                }]
            }, {
                type: "Button",
                props: {
                    width: 173,
                    var: "mainBtn",
                    stateNum: 1,
                    skin: "rank/rank_backhome.png",
                    left: 261,
                    height: 172,
                    bottom: 85
                }
            }, {
                type: "Button",
                props: {
                    width: 349,
                    var: "joinGameBtn",
                    stateNum: 1,
                    skin: "game/Join.png",
                    right: 254,
                    height: 172,
                    bottom: 85
                }
            }]
        }, i;
    }(View);
    t.GroupRankPageUI = e;
}(ui || (ui = {})), function (t) {
    var e = function (e) {
        function i() {
            return e.call(this) || this;
        }
        return __extends(i, e), i.prototype.createChildren = function () {
            View.regComponent("Text", laya.display.Text), e.prototype.createChildren.call(this),
                this.createView(t.LoadingUI.uiView);
        }, i.uiView = {
            type: "View",
            props: {
                y: 0,
                x: 0,
                width: 1080,
                top: 0,
                skewY: 0,
                skewX: 0,
                scaleY: 1,
                scaleX: 1,
                right: 0,
                pivotY: 0,
                pivotX: 0,
                left: 0,
                height: 1920,
                centerY: 0,
                centerX: 0,
                bottom: 0,
                anchorY: 0,
                anchorX: 0
            },
            child: [{
                type: "Image",
                props: {
                    width: 1080,
                    skin: "loading/loadingbg.png",
                    scaleY: 1,
                    scaleX: 1,
                    height: 2337.6,
                    centerY: 0,
                    centerX: 0,
                    anchorY: .5,
                    anchorX: .5
                }
            }, {
                type: "Image",
                props: {
                    y: 1570,
                    x: 190,
                    skin: "loading/loadingbar.png"
                }
            }, {
                type: "Image",
                props: {
                    y: 1568,
                    x: 191,
                    skin: "loading/loadingbar.png"
                }
            }, {
                type: "Image",
                props: {
                    y: 1567,
                    x: 190,
                    skin: "loading/loadingf.png"
                },
                child: [{
                    type: "Image",
                    props: {
                        width: 0,
                        var: "loadingBar",
                        skin: "loading/loadingf.png",
                        renderType: "mask"
                    }
                }]
            }, {
                type: "Image",
                props: {
                    y: 1574,
                    x: 195,
                    var: "loadingC",
                    skin: "loading/loadingc.png"
                }
            }, {
                type: "Image",
                props: {
                    y: 1602,
                    x: 158,
                    var: "loadingB",
                    skin: "loading/loadingb.png"
                },
                child: [{
                    type: "Text",
                    props: {
                        y: 23,
                        x: 1,
                        width: 93,
                        var: "loadingVal",
                        text: "0%",
                        height: 30,
                        fontSize: 30,
                        color: "#ffffff",
                        align: "center"
                    }
                }]
            }]
        }, i;
    }(View);
    t.LoadingUI = e;
}(ui || (ui = {})), function (t) {
    var e = function (e) {
        function i() {
            return e.call(this) || this;
        }
        return __extends(i, e), i.prototype.createChildren = function () {
            View.regComponent("Text", laya.display.Text), e.prototype.createChildren.call(this),
                this.createView(t.MissionPageUI.uiView);
        }, i.uiView = {
            type: "View",
            props: {
                width: 1080,
                height: 1920
            },
            child: [{
                type: "Image",
                props: {
                    y: -500,
                    x: 0,
                    width: 1080,
                    skin: "characterSystem/c_bg.png",
                    height: 3e3
                }
            }, {
                type: "Image",
                props: {
                    y: 100,
                    x: 628,
                    top: 100,
                    skin: "characterSystem/c_cloud3.png",
                    right: 0
                }
            }, {
                type: "Image",
                props: {
                    y: 1046,
                    x: 0,
                    skin: "characterSystem/c_cloud2.png",
                    left: 0,
                    bottom: 700
                }
            }, {
                type: "Image",
                props: {
                    y: 700,
                    x: 500,
                    top: 700,
                    skin: "characterSystem/c_cloud1.png",
                    left: 500
                }
            }, {
                type: "Image",
                props: {
                    width: 237,
                    top: 50,
                    skin: "mission/m_mission.png",
                    left: 421,
                    height: 156
                }
            }, {
                type: "Box",
                props: {
                    y: -150,
                    x: 0,
                    width: 1080,
                    var: "missionTools",
                    height: 1920
                },
                child: [{
                    type: "Box",
                    props: {
                        width: 271,
                        top: 403,
                        left: 86,
                        height: 514
                    },
                    child: [{
                        type: "Image",
                        props: {
                            skin: "mission/m_mbg.png"
                        }
                    }, {
                        type: "Image",
                        props: {
                            top: 101,
                            skin: "mission/m_store.png",
                            name: "award",
                            left: 25
                        }
                    }, {
                        type: "Image",
                        props: {
                            width: 198,
                            top: 378,
                            skin: "mission/m_lq.png",
                            sizeGrid: "0,25,0,25",
                            name: "getAward",
                            left: 38,
                            height: 88
                        }
                    }, {
                        type: "Text",
                        props: {
                            y: 313,
                            x: 99,
                            width: 80,
                            text: "200",
                            name: "awardTxt",
                            fontSize: 35,
                            color: "#ffffff",
                            align: "center"
                        }
                    }, {
                        type: "Text",
                        props: {
                            y: 18,
                            x: 57,
                            text: "第1位好友",
                            fontSize: 35,
                            color: "#ffffff",
                            align: "center"
                        }
                    }]
                }, {
                    type: "Box",
                    props: {
                        width: 271,
                        top: 403,
                        left: 404,
                        height: 514
                    },
                    child: [{
                        type: "Image",
                        props: {
                            skin: "mission/m_mbg.png"
                        }
                    }, {
                        type: "Image",
                        props: {
                            top: 101,
                            skin: "mission/m_store.png",
                            name: "award",
                            left: 25
                        }
                    }, {
                        type: "Image",
                        props: {
                            width: 198,
                            top: 378,
                            skin: "mission/m_lq.png",
                            sizeGrid: "0,25,0,25",
                            name: "getAward",
                            left: 38,
                            height: 88
                        }
                    }, {
                        type: "Text",
                        props: {
                            y: 313,
                            x: 99,
                            width: 80,
                            text: "宝箱",
                            name: "awardTxt",
                            fontSize: 35,
                            color: "#ffffff",
                            align: "center"
                        }
                    }, {
                        type: "Text",
                        props: {
                            y: 18,
                            x: 57,
                            text: "第2位好友",
                            fontSize: 35,
                            color: "#ffffff",
                            align: "center"
                        }
                    }]
                }, {
                    type: "Box",
                    props: {
                        width: 271,
                        top: 403,
                        left: 733,
                        height: 514
                    },
                    child: [{
                        type: "Image",
                        props: {
                            skin: "mission/m_mbg.png"
                        }
                    }, {
                        type: "Image",
                        props: {
                            top: 101,
                            skin: "mission/m_store.png",
                            name: "award",
                            left: 25
                        }
                    }, {
                        type: "Image",
                        props: {
                            width: 198,
                            top: 378,
                            skin: "mission/m_lq.png",
                            sizeGrid: "0,25,0,25",
                            name: "getAward",
                            left: 38,
                            height: 88
                        }
                    }, {
                        type: "Text",
                        props: {
                            y: 313,
                            x: 99,
                            width: 80,
                            text: "宝箱",
                            name: "awardTxt",
                            fontSize: 35,
                            color: "#ffffff",
                            align: "center"
                        }
                    }, {
                        type: "Text",
                        props: {
                            y: 18,
                            x: 57,
                            text: "第3位好友",
                            fontSize: 35,
                            color: "#ffffff",
                            align: "center"
                        }
                    }]
                }, {
                    type: "Box",
                    props: {
                        width: 271,
                        top: 955,
                        left: 82,
                        height: 514
                    },
                    child: [{
                        type: "Image",
                        props: {
                            skin: "mission/m_mbg.png"
                        }
                    }, {
                        type: "Image",
                        props: {
                            top: 101,
                            skin: "mission/m_store.png",
                            name: "award",
                            left: 25
                        }
                    }, {
                        type: "Image",
                        props: {
                            width: 198,
                            top: 378,
                            skin: "mission/m_lq.png",
                            sizeGrid: "0,25,0,25",
                            name: "getAward",
                            left: 38,
                            height: 88
                        }
                    }, {
                        type: "Text",
                        props: {
                            y: 313,
                            x: 99,
                            width: 80,
                            text: "宝箱",
                            name: "awardTxt",
                            fontSize: 35,
                            color: "#ffffff",
                            align: "center"
                        }
                    }, {
                        type: "Text",
                        props: {
                            y: 18,
                            x: 57,
                            text: "第4位好友",
                            fontSize: 35,
                            color: "#ffffff",
                            align: "center"
                        }
                    }]
                }, {
                    type: "Box",
                    props: {
                        width: 271,
                        top: 955,
                        left: 404,
                        height: 514
                    },
                    child: [{
                        type: "Image",
                        props: {
                            skin: "mission/m_mbg.png"
                        }
                    }, {
                        type: "Image",
                        props: {
                            top: 101,
                            skin: "mission/m_store.png",
                            name: "award",
                            left: 25
                        }
                    }, {
                        type: "Image",
                        props: {
                            width: 198,
                            top: 378,
                            skin: "mission/m_lq.png",
                            sizeGrid: "0,25,0,25",
                            name: "getAward",
                            left: 38,
                            height: 88
                        }
                    }, {
                        type: "Text",
                        props: {
                            y: 313,
                            x: 99,
                            width: 80,
                            text: "宝箱",
                            name: "awardTxt",
                            fontSize: 35,
                            color: "#ffffff",
                            align: "center"
                        }
                    }, {
                        type: "Text",
                        props: {
                            y: 18,
                            x: 57,
                            text: "第5位好友",
                            fontSize: 35,
                            color: "#ffffff",
                            align: "center"
                        }
                    }]
                }, {
                    type: "Box",
                    props: {
                        width: 271,
                        top: 955,
                        left: 733,
                        height: 514
                    },
                    child: [{
                        type: "Image",
                        props: {
                            skin: "mission/m_mbg.png"
                        }
                    }, {
                        type: "Image",
                        props: {
                            top: 101,
                            skin: "mission/m_store.png",
                            name: "award",
                            left: 25
                        }
                    }, {
                        type: "Image",
                        props: {
                            width: 198,
                            top: 378,
                            skin: "mission/m_lq.png",
                            sizeGrid: "0,25,0,25",
                            name: "getAward",
                            left: 38,
                            height: 88
                        }
                    }, {
                        type: "Text",
                        props: {
                            y: 313,
                            x: 99,
                            width: 80,
                            text: "宝箱",
                            name: "awardTxt",
                            fontSize: 35,
                            color: "#ffffff",
                            align: "center"
                        }
                    }, {
                        type: "Text",
                        props: {
                            y: 18,
                            x: 57,
                            text: "第6位好友",
                            fontSize: 35,
                            color: "#ffffff",
                            align: "center"
                        }
                    }]
                }]
            }, {
                type: "Image",
                props: {
                    y: 1371,
                    x: 393,
                    var: "inviteBtn",
                    skin: "mission/m_invitebig.png"
                }
            }, {
                type: "Image",
                props: {
                    width: 159,
                    var: "backBtn",
                    top: 1528,
                    skin: "mission/a_back.png",
                    left: 452,
                    height: 66
                }
            }]
        }, i;
    }(View);
    t.MissionPageUI = e;
}(ui || (ui = {})), function (t) {
    var e = function (e) {
        function i() {
            return e.call(this) || this;
        }
        return __extends(i, e), i.prototype.createChildren = function () {
            View.regComponent("Text", laya.display.Text), e.prototype.createChildren.call(this),
                this.createView(t.PlayerBoxesUI.uiView);
        }, i.uiView = {
            type: "View",
            props: {
                y: 0,
                x: 0,
                width: 1080,
                top: 0,
                skewY: 0,
                skewX: 0,
                scaleY: 1,
                scaleX: 1,
                right: 0,
                pivotY: 0,
                pivotX: 0,
                left: 0,
                height: 1920,
                centerY: 0,
                centerX: 0,
                bottom: 0,
                anchorY: 0,
                anchorX: 0
            },
            child: [{
                type: "Image",
                props: {
                    y: -500,
                    x: 0,
                    width: 1080,
                    skin: "mission/m_bg.png",
                    height: 3e3
                }
            }, {
                type: "Image",
                props: {
                    y: 211,
                    x: 92,
                    skin: "playerBoxes/p_bg.png"
                }
            }, {
                type: "Image",
                props: {
                    y: 355,
                    x: 939,
                    var: "closeBtn",
                    skin: "playerBoxes/p_close.png"
                }
            }, {
                type: "Panel",
                props: {
                    y: 516,
                    x: 138,
                    width: 803,
                    var: "boxesPanel",
                    height: 1026
                },
                child: [{
                    type: "Image",
                    props: {
                        y: 83,
                        x: 87,
                        width: 240,
                        skin: "game/playerm1.png",
                        height: 240
                    },
                    child: [{
                        type: "Image",
                        props: {
                            y: 147,
                            x: 41,
                            skin: "playerBoxes/p_new.png"
                        }
                    }, {
                        type: "Image",
                        props: {
                            y: 329,
                            x: 16,
                            skin: "playerBoxes/p_invite.png"
                        }
                    }, {
                        type: "Text",
                        props: {
                            y: 283,
                            x: -13,
                            width: 263,
                            text: "剩余时间: 00:05:00",
                            fontSize: 30,
                            color: "#ffffff",
                            align: "center"
                        }
                    }]
                }, {
                    type: "Image",
                    props: {
                        y: 83,
                        x: 455,
                        width: 240,
                        skin: "game/playerm1.png",
                        height: 240
                    },
                    child: [{
                        type: "Image",
                        props: {
                            y: 147,
                            x: 41,
                            skin: "playerBoxes/p_new.png"
                        }
                    }, {
                        type: "Image",
                        props: {
                            y: 329,
                            x: 16,
                            skin: "playerBoxes/p_invite.png"
                        }
                    }, {
                        type: "Text",
                        props: {
                            y: 283,
                            x: -13,
                            width: 263,
                            text: "剩余时间: 00:05:00",
                            fontSize: 30,
                            color: "#ffffff",
                            align: "center"
                        }
                    }]
                }, {
                    type: "Image",
                    props: {
                        y: 587,
                        x: 0,
                        width: 240,
                        skin: "game/playerm1.png",
                        height: 240
                    },
                    child: [{
                        type: "Image",
                        props: {
                            y: 147,
                            x: 41,
                            skin: "playerBoxes/p_new.png"
                        }
                    }, {
                        type: "Image",
                        props: {
                            y: 329,
                            x: 16,
                            skin: "playerBoxes/p_invite.png"
                        }
                    }, {
                        type: "Text",
                        props: {
                            y: 283,
                            x: -13,
                            width: 263,
                            text: "剩余时间: 00:05:00",
                            fontSize: 30,
                            color: "#ffffff",
                            align: "center"
                        }
                    }]
                }, {
                    type: "Image",
                    props: {
                        y: 587,
                        x: 402,
                        width: 240,
                        skin: "game/playerm1.png",
                        height: 240
                    },
                    child: [{
                        type: "Image",
                        props: {
                            y: 147,
                            x: 41,
                            skin: "playerBoxes/p_new.png"
                        }
                    }, {
                        type: "Image",
                        props: {
                            y: 329,
                            x: 16,
                            skin: "playerBoxes/p_invite.png"
                        }
                    }, {
                        type: "Text",
                        props: {
                            y: 283,
                            x: -13,
                            width: 263,
                            text: "剩余时间: 00:05:00",
                            fontSize: 30,
                            color: "#ffffff",
                            align: "center"
                        }
                    }]
                }, {
                    type: "Image",
                    props: {
                        y: 597,
                        x: 412,
                        width: 240,
                        skin: "game/playerm1.png",
                        height: 240
                    },
                    child: [{
                        type: "Image",
                        props: {
                            y: 147,
                            x: 41,
                            skin: "playerBoxes/p_new.png"
                        }
                    }, {
                        type: "Image",
                        props: {
                            y: 329,
                            x: 16,
                            skin: "playerBoxes/p_invite.png"
                        }
                    }, {
                        type: "Text",
                        props: {
                            y: 283,
                            x: -13,
                            width: 263,
                            text: "剩余时间: 00:05:00",
                            fontSize: 30,
                            color: "#ffffff",
                            align: "center"
                        }
                    }]
                }, {
                    type: "Image",
                    props: {
                        y: 607,
                        x: 422,
                        width: 240,
                        skin: "game/playerm1.png",
                        height: 240
                    },
                    child: [{
                        type: "Image",
                        props: {
                            y: 147,
                            x: 41,
                            skin: "playerBoxes/p_new.png"
                        }
                    }, {
                        type: "Image",
                        props: {
                            y: 329,
                            x: 16,
                            skin: "playerBoxes/p_invite.png"
                        }
                    }, {
                        type: "Text",
                        props: {
                            y: 283,
                            x: -13,
                            width: 263,
                            text: "剩余时间: 00:05:00",
                            fontSize: 30,
                            color: "#ffffff",
                            align: "center"
                        }
                    }]
                }, {
                    type: "Image",
                    props: {
                        y: 617,
                        x: 432,
                        width: 240,
                        skin: "game/playerm1.png",
                        height: 240
                    },
                    child: [{
                        type: "Image",
                        props: {
                            y: 147,
                            x: 41,
                            skin: "playerBoxes/p_new.png"
                        }
                    }, {
                        type: "Image",
                        props: {
                            y: 329,
                            x: 16,
                            skin: "playerBoxes/p_invite.png"
                        }
                    }, {
                        type: "Text",
                        props: {
                            y: 283,
                            x: -13,
                            width: 263,
                            text: "剩余时间: 00:05:00",
                            fontSize: 30,
                            color: "#ffffff",
                            align: "center"
                        }
                    }]
                }]
            }]
        }, i;
    }(View);
    t.PlayerBoxesUI = e;
}(ui || (ui = {})), function (t) {
    var e = function (e) {
        function i() {
            return e.call(this) || this;
        }
        return __extends(i, e), i.prototype.createChildren = function () {
            View.regComponent("Text", laya.display.Text), e.prototype.createChildren.call(this),
                this.createView(t.RankPageUI.uiView);
        }, i.uiView = {
            type: "View",
            props: {
                width: 1080,
                height: 1920
            },
            child: [{
                type: "Image",
                props: {
                    y: 304,
                    x: 61,
                    width: 958,
                    top: 304,
                    skin: "rank/rank_score.png",
                    left: 61,
                    height: 149
                }
            }, {
                type: "Image",
                props: {
                    y: 480,
                    x: 61,
                    width: 958,
                    top: 480,
                    skin: "rank/rank_list.png",
                    left: 61,
                    height: 950
                }
            }, {
                type: "Sprite",
                props: {
                    y: 305,
                    x: 70,
                    width: 940,
                    var: "rankSprite",
                    height: 1200
                }
            }, {
                type: "Image",
                props: {
                    width: 480,
                    var: "friendBg",
                    top: 1430,
                    skin: "rank/rank_nochoose.png",
                    left: 59,
                    height: 116
                }
            }, {
                type: "Image",
                props: {
                    width: 480,
                    var: "globalBg",
                    top: 1430,
                    skin: "rank/rank_choose.png",
                    sizeGrid: "0,0,0,0",
                    left: 539,
                    height: 116
                }
            }, {
                type: "Image",
                props: {
                    y: 1450,
                    x: 106,
                    width: 357,
                    var: "friendRankBtn",
                    skin: "rank/rank_friend.png",
                    height: 64
                }
            }, {
                type: "Image",
                props: {
                    y: 1450,
                    x: 596,
                    width: 357,
                    var: "globalRankBtn",
                    skin: "rank/rank_bottom.png",
                    height: 64
                }
            }, {
                type: "Image",
                props: {
                    width: 250,
                    var: "previousBtn",
                    top: 1580,
                    skin: "rank/rank_nextpage.png",
                    left: 84,
                    height: 94
                }
            }, {
                type: "Image",
                props: {
                    width: 250,
                    var: "nextBtn",
                    top: 1580,
                    skin: "rank/rank_lastpage.png",
                    right: 84,
                    height: 94
                }
            }, {
                type: "Image",
                props: {
                    width: 151,
                    var: "mainBtn",
                    top: 1720,
                    skin: "rank/rank_backhome.png",
                    left: 464,
                    height: 151
                }
            }, {
                type: "Image",
                props: {
                    width: 32,
                    var: "friendDir",
                    top: 1410,
                    skin: "rank/rank_trangle.png",
                    left: 130,
                    height: 16
                }
            }, {
                type: "Image",
                props: {
                    width: 32,
                    var: "globalDir",
                    top: 1410,
                    skin: "rank/rank_trangle.png",
                    left: 614,
                    height: 16
                }
            }, {
                type: "Image",
                props: {
                    width: 196,
                    var: "showGroupRankBtn",
                    top: 1611,
                    skin: "rank/rank_gotogroup.png",
                    left: 442,
                    height: 45
                }
            }, {
                type: "Box",
                props: {
                    y: 0,
                    x: 0,
                    width: 1080,
                    var: "globalRank",
                    height: 1920
                },
                child: [{
                    type: "Box",
                    props: {
                        width: 1080,
                        var: "myInfo",
                        height: 1920
                    },
                    child: [{
                        type: "Text",
                        props: {
                            y: 345,
                            x: 100,
                            text: "1",
                            fontSize: 60,
                            color: "#ffffff"
                        }
                    }, {
                        type: "Text",
                        props: {
                            y: 365,
                            x: 465,
                            text: "LEOU",
                            fontSize: 25,
                            color: "#e0d7d7"
                        }
                    }, {
                        type: "Text",
                        props: {
                            y: 355,
                            x: 685,
                            width: 180,
                            text: "930",
                            fontSize: 45,
                            color: "#ffffff",
                            align: "right"
                        }
                    }, {
                        type: "Image",
                        props: {
                            y: 325,
                            x: 270,
                            width: 110,
                            skin: "rank/defaultimg.png",
                            height: 110
                        }
                    }]
                }, {
                    type: "Box",
                    props: {
                        width: 1080,
                        var: "allRank",
                        height: 1920
                    },
                    child: [{
                        type: "Box",
                        props: {
                            width: 1080,
                            height: 1920
                        },
                        child: [{
                            type: "Text",
                            props: {
                                y: 510,
                                x: 95,
                                text: "1",
                                fontSize: 60,
                                color: "#ffffff"
                            }
                        }, {
                            type: "Text",
                            props: {
                                y: 530,
                                x: 466,
                                text: "LEOU",
                                fontSize: 23,
                                color: "#e0d7d7"
                            }
                        }, {
                            type: "Text",
                            props: {
                                y: 518,
                                x: 685,
                                width: 180,
                                text: "930",
                                fontSize: 45,
                                color: "#ffffff",
                                align: "right"
                            }
                        }, {
                            type: "Image",
                            props: {
                                y: 510,
                                x: 269,
                                width: 67,
                                height: 67
                            }
                        }]
                    }, {
                        type: "Box",
                        props: {
                            width: 1080,
                            height: 1920
                        },
                        child: [{
                            type: "Text",
                            props: {
                                y: 628,
                                x: 95,
                                text: "1",
                                fontSize: 60,
                                color: "#ffffff"
                            }
                        }, {
                            type: "Text",
                            props: {
                                y: 648,
                                x: 466,
                                text: "LEOU",
                                fontSize: 23,
                                color: "#e0d7d7"
                            }
                        }, {
                            type: "Text",
                            props: {
                                y: 636,
                                x: 685,
                                width: 180,
                                text: "930",
                                fontSize: 45,
                                color: "#ffffff",
                                align: "right"
                            }
                        }, {
                            type: "Image",
                            props: {
                                y: 628,
                                x: 269,
                                width: 67,
                                height: 67
                            }
                        }]
                    }, {
                        type: "Box",
                        props: {
                            width: 1080,
                            height: 1920
                        },
                        child: [{
                            type: "Text",
                            props: {
                                y: 746,
                                x: 95,
                                text: "1",
                                fontSize: 60,
                                color: "#ffffff"
                            }
                        }, {
                            type: "Text",
                            props: {
                                y: 766,
                                x: 466,
                                text: "LEOU",
                                fontSize: 23,
                                color: "#e0d7d7"
                            }
                        }, {
                            type: "Text",
                            props: {
                                y: 754,
                                x: 685,
                                width: 180,
                                text: "930",
                                fontSize: 45,
                                color: "#ffffff",
                                align: "right"
                            }
                        }, {
                            type: "Image",
                            props: {
                                y: 746,
                                x: 269,
                                width: 67,
                                height: 67
                            }
                        }]
                    }, {
                        type: "Box",
                        props: {
                            width: 1080,
                            height: 1920
                        },
                        child: [{
                            type: "Text",
                            props: {
                                y: 864,
                                x: 95,
                                text: "1",
                                fontSize: 60,
                                color: "#ffffff"
                            }
                        }, {
                            type: "Text",
                            props: {
                                y: 884,
                                x: 466,
                                text: "LEOU",
                                fontSize: 23,
                                color: "#e0d7d7"
                            }
                        }, {
                            type: "Text",
                            props: {
                                y: 872,
                                x: 685,
                                width: 180,
                                text: "930",
                                fontSize: 45,
                                color: "#ffffff",
                                align: "right"
                            }
                        }, {
                            type: "Image",
                            props: {
                                y: 864,
                                x: 269,
                                width: 67,
                                height: 67
                            }
                        }]
                    }, {
                        type: "Box",
                        props: {
                            width: 1080,
                            height: 1920
                        },
                        child: [{
                            type: "Text",
                            props: {
                                y: 982,
                                x: 95,
                                text: "1",
                                fontSize: 60,
                                color: "#ffffff"
                            }
                        }, {
                            type: "Text",
                            props: {
                                y: 1002,
                                x: 466,
                                text: "LEOU",
                                fontSize: 23,
                                color: "#e0d7d7"
                            }
                        }, {
                            type: "Text",
                            props: {
                                y: 990,
                                x: 685,
                                width: 180,
                                text: "930",
                                fontSize: 45,
                                color: "#ffffff",
                                align: "right"
                            }
                        }, {
                            type: "Image",
                            props: {
                                y: 982,
                                x: 269,
                                width: 67,
                                height: 67
                            }
                        }]
                    }, {
                        type: "Box",
                        props: {
                            width: 1080,
                            height: 1920
                        },
                        child: [{
                            type: "Text",
                            props: {
                                y: 1100,
                                x: 95,
                                text: "1",
                                fontSize: 60,
                                color: "#ffffff"
                            }
                        }, {
                            type: "Text",
                            props: {
                                y: 1120,
                                x: 466,
                                text: "LEOU",
                                fontSize: 23,
                                color: "#e0d7d7"
                            }
                        }, {
                            type: "Text",
                            props: {
                                y: 1108,
                                x: 685,
                                width: 180,
                                text: "930",
                                fontSize: 45,
                                color: "#ffffff",
                                align: "right"
                            }
                        }, {
                            type: "Image",
                            props: {
                                y: 1100,
                                x: 269,
                                width: 67,
                                height: 67
                            }
                        }]
                    }, {
                        type: "Box",
                        props: {
                            width: 1080,
                            height: 1920
                        },
                        child: [{
                            type: "Text",
                            props: {
                                y: 1218,
                                x: 95,
                                text: "1",
                                fontSize: 60,
                                color: "#ffffff"
                            }
                        }, {
                            type: "Text",
                            props: {
                                y: 1238,
                                x: 466,
                                text: "LEOU",
                                fontSize: 23,
                                color: "#e0d7d7"
                            }
                        }, {
                            type: "Text",
                            props: {
                                y: 1226,
                                x: 685,
                                width: 180,
                                text: "930",
                                fontSize: 45,
                                color: "#ffffff",
                                align: "right"
                            }
                        }, {
                            type: "Image",
                            props: {
                                y: 1218,
                                x: 269,
                                width: 67,
                                height: 67
                            }
                        }]
                    }, {
                        type: "Box",
                        props: {
                            width: 1080,
                            height: 1920
                        },
                        child: [{
                            type: "Text",
                            props: {
                                y: 1336,
                                x: 95,
                                text: "1",
                                fontSize: 60,
                                color: "#ffffff"
                            }
                        }, {
                            type: "Text",
                            props: {
                                y: 1356,
                                x: 466,
                                text: "LEOU",
                                fontSize: 23,
                                color: "#e0d7d7"
                            }
                        }, {
                            type: "Text",
                            props: {
                                y: 1344,
                                x: 685,
                                width: 180,
                                text: "930",
                                fontSize: 45,
                                color: "#ffffff",
                                align: "right"
                            }
                        }, {
                            type: "Image",
                            props: {
                                y: 1336,
                                x: 269,
                                width: 67,
                                height: 67
                            }
                        }]
                    }]
                }]
            }]
        }, i;
    }(View);
    t.RankPageUI = e;
}(ui || (ui = {})), function (t) {
    var e = function (e) {
        function i() {
            return e.call(this) || this;
        }
        return __extends(i, e), i.prototype.createChildren = function () {
            View.regComponent("Text", laya.display.Text), e.prototype.createChildren.call(this),
                this.createView(t.RevivePageUI.uiView);
        }, i.uiView = {
            type: "View",
            props: {
                width: 1080,
                height: 1920
            },
            child: [{
                type: "Box",
                props: {
                    y: -80,
                    width: 1080,
                    var: "useReviveCardPage",
                    height: 1920
                },
                child: [{
                    type: "Image",
                    props: {
                        y: 1316,
                        x: 78,
                        width: 951,
                        var: "nearFriend",
                        skin: "plugins/beyond.png",
                        height: 186
                    },
                    child: [{
                        type: "Text",
                        props: {
                            y: 68,
                            x: 866,
                            width: 78,
                            text: "分",
                            height: 79,
                            fontSize: 50,
                            color: "#ffffff",
                            align: "left"
                        }
                    }]
                }, {
                    type: "Image",
                    props: {
                        y: 364,
                        x: 65,
                        width: 951,
                        skin: "plugins/p_revivebg.png",
                        height: 851
                    }
                }, {
                    type: "Image",
                    props: {
                        y: 1100,
                        x: 150,
                        var: "shareBtn",
                        skin: "plugins/p_sharerevive.png"
                    }
                }, {
                    type: "Image",
                    props: {
                        y: 1100,
                        x: 530,
                        width: 431,
                        var: "watchVideo",
                        skin: "plugins/watchvideo.png",
                        height: 170
                    }
                }, {
                    type: "Image",
                    props: {
                        y: 1100,
                        x: 580,
                        width: 348,
                        var: "costBtn",
                        skin: "plugins/p_costrevive1.png",
                        height: 170
                    }
                }, {
                    type: "Image",
                    props: {
                        y: 1538,
                        x: 512,
                        width: 107,
                        var: "skip",
                        skin: "plugins/skip.png",
                        height: 56
                    }
                }, {
                    type: "Text",
                    props: {
                        y: 610,
                        x: 0,
                        width: 1080,
                        var: "score",
                        text: "1000",
                        height: 200,
                        fontSize: 200,
                        color: "#ffffff",
                        align: "center"
                    }
                }]
            }, {
                type: "Sprite",
                props: {
                    y: 1224,
                    x: 81,
                    width: 951,
                    var: "rankSprite",
                    height: 203
                }
            }]
        }, i;
    }(View);
    t.RevivePageUI = e;
}(ui || (ui = {})), function (t) {
    var e = function (e) {
        function i() {
            return e.call(this) || this;
        }
        return __extends(i, e), i.prototype.createChildren = function () {
            View.regComponent("Text", laya.display.Text), e.prototype.createChildren.call(this),
                this.createView(t.TipsPageUI.uiView);
        }, i.uiView = {
            type: "View",
            props: {
                width: 1080,
                height: 1920
            },
            child: [{
                type: "Box",
                props: {
                    width: 1080,
                    var: "tips",
                    height: 1920
                },
                child: [{
                    type: "Image",
                    props: {
                        width: 1080,
                        skin: "game/tips.png",
                        left: 0,
                        height: 1388,
                        bottom: 0
                    }
                }]
            }, {
                type: "Text",
                props: {
                    y: 262,
                    width: 1080,
                    var: "scoreText",
                    text: "0",
                    fontSize: 174,
                    color: "#ffffff",
                    align: "center"
                }
            }]
        }, i;
    }(View);
    t.TipsPageUI = e;
}(ui || (ui = {}));

var gameManager = new GameManager();

gameManager.preload();